-
Completely fresh install using the guide on your Next Specific installation page. Command Line Error: https://nextjs.org/docs/messages/module-not-found Localhost:3000 error: Next.js (15.1.6) ./app/globals.css https://nextjs.org/docs/messages/module-not-found Import trace for requested module: posts.config.mjs globals.css :root { @media (prefers-color-scheme: dark) { body { package.json I do notice the devDependencies is not showing the new version?? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It could be that you said Yes to the "Would you like to use Tailwind CSS?" question. This would then install Tailwind v3. You could consider running:
To force it to v4. |
Beta Was this translation helpful? Give feedback.
-
You are correct! Thank You. It appears that the command listed on the Installation page did in fact install the 3.1.x version as opposed to 4.0 if you said yes to using Tailwind. This was successful: Using npm. Initializing project with template: app Installing dependencies:
Installing devDependencies:
added 301 packages, and audited 302 packages in 5s 124 packages are looking for funding found 0 vulnerabilities Success! Created my-project at /Users/Developer/windsurf/my-project Here I added the @4 to force version 4 as you suggested added 11 packages, changed 1 package, and audited 313 packages in 811ms 128 packages are looking for funding found 0 vulnerabilities npm run dev
▲ Next.js 15.1.6
✓ Starting... The page rendered correctly. |
Beta Was this translation helpful? Give feedback.
You are correct! Thank You.
It appears that the command listed on the Installation page did in fact install the 3.1.x version as opposed to 4.0 if you said yes to using Tailwind.
I made the assumption that it would us the latest ( Version 4.0.1). It did not
This was successful:
npx create-next-app@latest my-project --typescript --eslint --app
cd my-project
✔ Would you like to use Tailwind CSS? … No / Yes - ***** No *******
✔ Would you like your code inside a
src/
directory? … No / Yes✔ Would you like to use Turbopack for
next dev
? … No / Yes✔ Would you like to customize the import alias (
@/*
by default)? … No / YesCreating a new Next.js app in /Users/geoffreywhite/Developer/windsurf/my…