hyperweb-io / hyperweb-io/create-cosmos-app

postcss issue in certain environments

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.