Next.js Discord

Discord Forum

ESM not supported?

Unanswered
piscopancer posted this in #help-forum
Open in Discord
Avatar
piscopancerOP
o

7 Replies

Avatar
piscopancerOP
Image
I am having an error with postcss after I tried to upgrade my next app from commonjs to esm
Image
I did set "type": "module" in package.json
I did change modules.export -> export default in nextjs config, tailwind config, postcss config
It just does not work
Avatar
joulev & fuma pray for Schneider
for certain files, esm doesn't work. just do it as the documentation recommends you to