Next.js Discord

Discord Forum

Tailwind imports page.js vs layout.js

Unanswered
sergiocweb posted this in #help-forum
Open in Discord
Hello! I have one question for the new app router. The docs say to put the tailwind imports in global.css inside layout.js, but I have the error of the image in lighthouse. The content of the file is tailwind classes. If I put the global.css inside page.js I don't have that error. Inside global.css I have only the tailwind imports. I'm using the production build and all the stats of lighthouse except this are 100%.

Thank you!

1 Reply

I don't know if this can be a bug. You can replicate it with npx create-next-app with tailwind