Closed ghost closed 3 years ago
Possibly related to https://github.com/davidtheclark/cosmiconfig/issues/224
I have exactly the same issue.
davidtheclark/cosmiconfig
supports CJS imports from 7.0.0
so I've updated it here: https://github.com/michael-ciniawsky/postcss-load-config/pull/198
Related to #190
Fixed in postcss-load-config 3.0
When I add
"type": "module"
topackage.json
I get:If I follow the advice to change the extension to
cjs
I get:My
postcss.config.{cjs,js}
looks like:Removing
"type": "module"
and using thejs
extension everything works.original: https://github.com/postcss/postcss/issues/1329