ESM not supported?
Unanswered
piscopancer posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/379508146768707584/8174b777e18d714c5f2e3f9d73bf35f7.webp?size=256)
piscopancerOP
o
7 Replies
![Avatar](https://cdn.discordapp.com/avatars/379508146768707584/8174b777e18d714c5f2e3f9d73bf35f7.webp?size=256)
piscopancerOP
![Image](https://cdn.discordapp.com/attachments/1142496531547688990/1142496562547798016/image.png)
I am having an error with postcss after I tried to upgrade my next app from commonjs to esm
![Image](https://cdn.discordapp.com/attachments/1142496531547688990/1142496993340575764/image.png)
I did set "type": "module" in package.json
I did change
modules.export
-> export default
in nextjs config, tailwind config, postcss configIt just does not work
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
for certain files, esm doesn't work. just do it as the documentation recommends you to