Skip to content Skip to sidebar Skip to footer

Fullcalendar Error: Please Import The Top-level Fullcalendar Lib Before Attempting To Import A Plugin (create-react-app & Craco.config.js)

Below code works fine if the lines are commented out but if I uncomment the lines below in the code I am getting the error shown below in the image. I couldn't find any similar exa

Solution 1:

Found the answer. FullCalendar works absolutely fine with create-react-app template with craco.config.js and there is no need to override any webpack settings in the craco.config.js file.

Steps followed to resolve the issue. Created a new project with create-react-app template and installed fullcalendar packages and it worked fine. So, I deleted all fullcalendar npm packages in the project and started from scratch again, when I re-installed all packages everything working aboslutely fine. Something might have got corrupted previously but is working now.

Thank you everyone if you have looked into it.


Post a Comment for "Fullcalendar Error: Please Import The Top-level Fullcalendar Lib Before Attempting To Import A Plugin (create-react-app & Craco.config.js)"