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

postcss issue in certain environments #8

Open
pyramation opened this issue Sep 5, 2022 · 0 comments
Open

postcss issue in certain environments #8

pyramation opened this issue Sep 5, 2022 · 0 comments

Comments

@pyramation
Copy link
Contributor

from discord:

npx create-cosmos-app my-app
cd my-app
yarn && yarn dev

but I got the bellow error on yarn dev:

error - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[2]!./styles/globals.css
TypeError: Cannot read properties of undefined (reading 'config')

Node v18.4.0
Linux mint

https://stackoverflow.com/questions/71125476/nextjs-getting-error-on-the-first-npm-run-dev

I've tried everything in that thread and the only thing that worked was to add a postcss.config.js file in the root of the project with this content:

module.exports = {
    plugins: {
    },
   }

strange that it worked even with no plugins defined inside it, but anyhow it works. I'm ready to explore the rest of it! Thank you a lot for your assistance!

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

1 participant