Calendar styles not loaded on Vercel cloud #2493
Replies: 3 comments 4 replies
-
Hi! I have exactly the same problem. Locally all styles work correctly, but as soon as you install the site, everything immediately crashes. This problem also works if you clone the repository and run the project, all styles also crash. |
Beta Was this translation helpful? Give feedback.
-
@PrimozRome, could you check if the issue occurs when running the built project locally? Vercel might not be building CSS imported from a package. You could try copying the CSS from node_modules to a relative directory to see if that resolves it. This looks like a Vercel issue, so please reach out to their support or provide us with a way to quickly reproduce the problem. Unfortunately, I can’t spend much time on issues without a clear reproduction path... |
Beta Was this translation helpful? Give feedback.
-
@PrimozRome thanks for your updates and for the code sandbox. I couldn't replicate the issue there either; https://codesandbox.io/p/sandbox/day-picker-next-js-p4zzzy It looks like there's something in the CSS that Vercel doesn't like. Could it be the css variables?
Interesting...
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For some reason my styles are not loaded in production (Vercel). They are wroking fine locally:
But in production on Vercel not. Check here the calendar: https://balkancampers.vercel.app/campervans/bibita
I am importing all styles in my NextJS's
_app.js
file like this:I was following this guide https://daypicker.dev/docs/styling. Everything works in local dev. environment but when deployed to Vercel the styles are not loaded.
Beta Was this translation helpful? Give feedback.
All reactions