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
Please import the top-level fullcalendar lib before attempting to import a plugin. #340
Comments
I believe it's the same issue that was reported here: So it should work if you include the plugins as described here: |
I resolved it myself. |
@satishbluone How did you solve this. Please explain. |
@faisalshafisit please follow the below steps:
|
@satishbluone , looks like below solution would fit best: |
This is what I did to solve this in my project. in my module import in this order and register my plugins.
in the component I use this inside my constructor just before I prepare my calendarOptions
|
I've written something explaining why this problem is happening and how I plan to solve it in the future: #371 |
I am using below versions:
"@fullcalendar/angular": "^5.3.0",
"@fullcalendar/bootstrap": "^5.3.0",
"@fullcalendar/core": "^5.3.0",
"@fullcalendar/daygrid": "^5.3.0",
"@fullcalendar/interaction": "^5.3.0",
"@fullcalendar/list": "^5.3.0",
"@fullcalendar/timegrid": "^5.3.0",
and "typescript": "~3.8.3"
Angular v9.1
It's working well in development mode.
but getting the error "Please import the top-level fullcalendar lib before attempting to import a plugin." in production.
I already moved the "FullCalendarModule" on top of all modules.
please help me to resolve this issue.
The text was updated successfully, but these errors were encountered: