Deploying on Vercel, tailwind classes missing?
Does anyone have issues with deploying on vercel?
Right now my app is deployed but my tailwind classes have no value, which is why my page looks wrong.
Locally it looks fine with the dev and build command
23 Replies
Can you send us your package.json and your tailwind config it could be something In there maybe
Its hard to tell withiut more info
Sure this is my package.json
Also any error on prod build or console ?
And this is my tailwind config:
no errors
build process works fine on vercel and locally aswell
And if you run next build next start locally it works ?
instead of pnpm?
Content seems fine in tailwind config
I do
pnpm run build
and pnpm run start
Yes
And they work ?
that works fine
yes
Have you tried rebuilding on vercel
yes deleted it and started it, same issue
And if you loon at the generated css there is just nothing on debugger chrome or something ?
Look *
no there is nothing
the html contains the proper classes
but the dev console does not show the proper values for the classes
like none
Can you show how you are using those classes
But the weird part
Is that it work when doing local build
I would expect it to fail there
Looks like this
Did you change the root in vercel config ?
If not it could be because of dynamically injected classes
But I thought this was fixed already
hmm the root?
oh you mean on vercel, no I kept it
Well I am .. confused maybe someone else could help ā¹ļø
yeah maybe I need to get some sleep š
but thanks for the help
I will try it tomorrow again
Tried my best sorry
Its like it cant find the css generated at all
Maybe if you applied dynamic classes but I thiught the same would happen locally
I got it working
it was acutally a bug with my version, I upgraded to nextjs 13.3.0 now and it works
š
Good stuff was abiut to tell you to update since it was the last step good job