cuth/postcss-pxtorem

(Help) Creating postcss.config.js in the root directory causes an error.

HugoRinderknecht opened this issue · 2 comments

I get an error when I create postcss.config.js in the root directory. When I move it to the js directory I created, the error disappears. However, I am wondering if it will still work or if it needs to go through some other configuration to be effective?
image
image

Not in the scope of this package, but try this:

  1. Keep your PostCSS config file where it was before.
  2. As the error message says, remove "module": true, from your package.json. If you absolutely need it for some reasons, then keep it and try to rename the PostCSS config file to postcss.config.mjs.

Thank you for your issue. I have been puzzled by this error message until now when I realized that I placed the JSON file directory incorrectly. 😄