Next.js Discord

Discord Forum

Tailwind not working con /pages

Answered
Barbary Lion posted this in #help-forum
Open in Discord
Avatar
Barbary LionOP
Hello guys, i don't know why, but on my page.js, all the tailwind its working perfectly, but on /pages/createCustomer, it isnt, anyone knows why?
Ive chatgpted and it doesnt give me a answer, all my code is good and my tailwind.config also.
Answered by Barbary Lion
but it started working
View full answer

15 Replies

Avatar
Barbary LionOP
Image
Image
Any errors on web console
Avatar
joulev
Did you set up tailwind for the pages router (not the app router)? Making a pages/_app.js file is important, and you don’t need to use app/layout.js. Refer to the guide https://nextjs.org/docs/pages/building-your-application/styling/tailwind-css
Avatar
Barbary LionOP
Already did that
Avatar
joulev
Then give me a reproduction repository
Avatar
Barbary LionOP
Reproduction?
Avatar
joulev
Yes. A repository that reproduces the bug so I can see how you set up tailwind and see what’s wrong
Avatar
Barbary LionOP
Uploading
@joulevWhat's your github @
Wtf
idk what i've touched
Avatar
Barbary LionOP
but it started working
Answer
Avatar
joulev
Oh
Well, glad it worked