Tailwind not working con /pages
Answered
Barbary Lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
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.
Ive chatgpted and it doesnt give me a answer, all my code is good and my tailwind.config also.
15 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Barbary LionOP
![Image](https://cdn.discordapp.com/attachments/1206980726642184232/1206980789871321188/Captura_de_Pantalla_2024-02-13_a_las_16.10.41.png?ex=65ddfb74&is=65cb8674&hm=a8ecf84b8669055f9e72ffacd8d7ef232ab70ebe644c8bd870beaa4ae3a4f85f&)
![Image](https://cdn.discordapp.com/attachments/1206980726642184232/1206980829222535228/Captura_de_Pantalla_2024-02-13_a_las_16.10.51.png?ex=65ddfb7e&is=65cb867e&hm=4da32ac6e9f0d5c26845f794ff61d08a595681a6caf283be18b8056e49a6e6d0&)
Any errors on web console
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
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](https://cdn.discordapp.com/embed/avatars/5.png)
Barbary LionOP
Already did that
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
Then give me a reproduction repository
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Barbary LionOP
Reproduction?
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
Yes. A repository that reproduces the bug so I can see how you set up tailwind and see what’s wrong
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Barbary LionOP
Uploading
@joulevWhat's your github @
Wtf
idk what i've touched
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Barbary LionOP
but it started working
Answer
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
Oh
Well, glad it worked