Next.js Discord

Discord Forum

ESM not supported?

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

7 Replies

I am having an error with postcss after I tried to upgrade my next app from commonjs to esm
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
for certain files, esm doesn't work. just do it as the documentation recommends you to