Next.js Discord

Discord Forum

Using `npx create-next-app@latest` generates some files with .mjs and tailwind problems

Answered
Blanc de Hotot posted this in #help-forum
Open in Discord
Blanc de HototOP
Hi everyone, I just started using nextjs and when i ran npx create-next-app@latest i noticed that my file structure was different than the one in the docs. also when i went to the global.css file I noticed that at the top it shows. @import "tailwindcss"; and not the
@tailwind base;
@tailwind components;
@tailwind utilities;
like in the example. also the postcss.config.mjs file is differnet on mine than on the example site witht he dashboard. I included some images, is this ok or did i do something wrong im using node version v22.16.0 Thank you for your time.
Answered by Asian black bear
There are no problems. Everything works as intended. Tailwind v4 has changed its configuration and the docs of Next.js just don't reflect that.
View full answer

2 Replies

Asian black bear
There are no problems. Everything works as intended. Tailwind v4 has changed its configuration and the docs of Next.js just don't reflect that.
Answer
Blanc de HototOP
Ahh I see. Thanks a lot. Now I can continue