hyperweb-io / hyperweb-io/create-cosmos-app
postcss issue in certain environments
- Dominant language
- TypeScript
- Stars
- 166
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.