New nextjs project immidiatly error
Unanswered
Champagne D’Argent posted this in #help-forum
Champagne D’ArgentOP
Hi I just created a new nextjs project doing this:
I am using node 18.17.0
But I get this error once I try to start the dev server:
npx create-next-app@latestI am using node 18.17.0
But I get this error once I try to start the dev server:
âš Port 3000 is in use, trying 3001 instead.
â–² Next.js 13.5.4
- Local: http://localhost:3001
✓ Ready in 3.2s
⨯ ./src/app/globals.css.webpack[javascript/auto]!=!./node_modules/.pnpm/next@13.5.4_react-dom@18.0.0_react@18.0.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/.pnpm/next@13.5.4_react-dom@18.0.0_react@18.0.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css
TypeError: Cannot read properties of undefined (reading 'config')
Import trace for requested module:
./src/app/globals.css.webpack[javascript/auto]!=!./node_modules/.pnpm/next@13.5.4_react-dom@18.0.0_react@18.0.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/.pnpm/next@13.5.4_react-dom@18.0.0_react@18.0.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css
./src/app/globals.css1 Reply
Champagne D’ArgentOP
Ok it was a pnpm issue solved it using
There is also an issue on github:
https://github.com/vercel/next.js/issues/56394
pnpm upThere is also an issue on github:
https://github.com/vercel/next.js/issues/56394