#I'm starting with next and I get this error on compile when doing `pnpm dev`

14 messages · Page 1 of 1 (latest)

dense magnet
#
./src/app/globals.css.webpack[javascript/auto]!=!./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/.pnpm/[email protected][email protected][email protected]/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')

pd: I haven't touched anything in the project, I just created it.

ashen shuttleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

wraith bridge
#

What is the dev script in your package.json?

dense magnet
wraith bridge
#

Then my suspicion was wrong. Don't have any ideas what it might be.

dense magnet
dense magnet
#

I don't know what is wrong with the tailwind types when creating the project, my solution for the moment was to create the project from 0 and install tailwind manually, but I think this does not solve my problem.

tiny wave
#

When you installed Next.js, did you select Tailwind? Also, are you using AppRouter? I've faced this issue before but can't remember how I resolved it. Could you provide more information about your Next.js installation process?

dense magnet
tiny wave
#

Great 😃
Can you push your project on GitHub repo and send the link here

#

btw you can try to install tailwind or if you are using a special tailwind package e.g (twMerge, etc...) You must install them first.
Also try to use pnpm install

#

Please make sure you already installed postcss and using it right

pastel scarab
#

i had this happen too, running pnpm upgrade after install seemed to fix it

dense magnet