New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fullcalendar style not working on React Remix 1.14.0 #7261
Comments
@iChwn I recently faced the same issue. I solved it by adding fullcalendar CSS via CDN on the page where I'm using the calendar. export const links: LinksFunction = () => {
return [
{
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/fullcalendar@5.11.3/main.min.css",
},
];
}; Currently side-effect import import in Remix is not that great. This is being worked upon. Details: https://remix.run/docs/en/1.15.0/guides/styling#css-side-effect-imports I would also suggest to wrap the Calendar component in a ClientOnly component so that it is only rendered after hydration, otherwise you will see the flicker of calendar from non-styled one that you shared to styled one. |
Sorry, I commented on the wrong issue |
This actually works for me, thank you for the suggestion |
I'll reopen this issue for coming up with a proper fix. |
I've created an official workaround for this: |
Thank You! |
The recommendation on FullCalendar is to add Ps. I am adding this here for future users. |
Hi, the fix of |
Which connector are you using (React/Angular/etc)?
React
Bug Description
I have an issue when trying to use Fullcalendar on my Remix project, the styles are not loaded in remix js, any suggestion to fix this issue?
Here is my simple implementation with the plugin
The text was updated successfully, but these errors were encountered: