Tailwind not working con /pages
Answered
zAguss🦆 posted this in #help-forum
zAguss🦆OP
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.
Ive chatgpted and it doesnt give me a answer, all my code is good and my tailwind.config also.
15 Replies
@zAguss🦆 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.
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
zAguss🦆OP
Already did that
Then give me a reproduction repository
zAguss🦆OP
Reproduction?
Yes. A repository that reproduces the bug so I can see how you set up tailwind and see what’s wrong
zAguss🦆OP
but it started working
Answer
Oh
Well, glad it worked