Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HugoRinderknecht opened this issue Feb 21, 2023 · 2 comments

Comments

@HugoRinderknecht
Copy link

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

@meduzen
Copy link

meduzen commented Mar 3, 2023

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.

@chenbt-hz
Copy link

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. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants