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
problems with Vite, ordering of import statements #152
Comments
Man.. u are my 🦸♂️ today. I've just spent 4 hours trying to get vite to work fullcalendar with the issue:
and that:
just saved me another day of searching and punching my monitor. (my hands are hurting already) Thanks 🙇 |
That really should be in the docs... somewhere... with huge spotlights and arrows pointing to it. |
For anyone else using Vite to build a React application, you need to add this line instead: |
This is working for EDIT |
OMG.. im now
Oh, you have just become my best friend, I had tried everything for that error and here is the solution, thank you very much! |
I'm Trying to implement FullCalendar into my Nuxt3 project, But I keep getting an error that says : vite_ssr_import_1 is not defined Please help guys ^^' |
I just met this issue in |
You saved me!! ty |
For some unknown reason, if I import fullcalencar/vue3 in my vue3 + vite + typescript project, all the components becomes red on visual studio with the following error : "any component name" cannot be used as a JSX component. / JSX element class does not support attributes because it does not have a 'props' property / It complains many other things to. I know for sure it is related to importing vuecalendar3. How can I fix this ? regards. |
Hi,you have the solution? i having this error after import fullcalendar too. |
Anything to solve this? I have the exact same issue! |
@techpool follow the suggestions on the thread and you are good to do. |
You are a life saver man! been racking my brain for solutions. |
Fixed in v6.0.0. A workaround is no longer needed. |
I'm using the library in Vue version 2.7 + Vite. How can I make this work? |
@jairo-ab It works as expected! |
I am still getting this error on 6.1.10 and i cant use @AdrianMrn solution because this file does not exist anymore |
Thanks bro. It saves my day |
To get the FullCalendar Vue plugin working with Vite's HMR, you'll need to import
@fullcalendar/core/vdom
for its side-effects before any other import. Example from the docs:This configuration is recommended for other bundlers too, not just Vite, because it guarantees the ordering of import statements that FullCalendar internally needs. It prevents the JS error
Please import the top-level fullcalendar lib before attempting to import a plugin.
The goal is to do away with this ordering requirement. See the following issue for more info: fullcalendar/fullcalendar#6371
The text was updated successfully, but these errors were encountered: