Next.js Discord

Discord Forum

An error occured in 'next/font'. Error: Cannot find module 'autoprefixer'

Answered
Chinese Alligator posted this in #help-forum
Open in Discord
Chinese AlligatorOP
I'm getting this error only during production build, running locally fine.

I tried to add autoprefixer to devDependencies which didnt help, any advise?
Answered by Chinese Alligator
i had to install autoprefixer and cssnano as dependencies (not devDependencies)
View full answer

1 Reply

Chinese AlligatorOP
i had to install autoprefixer and cssnano as dependencies (not devDependencies)
Answer