Topic: Uncaught TypeError: o is undefined
When a page is loaded containing FullCalendar, the follow error occurs in the console:
Uncaught TypeError: o is undefined
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
e http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:32
e http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
e http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:35
e http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
<anonymous> http://localhost:8080/Musse/dist/mdb/js/addons/fullcalendar.min.js:30
fullcalendar.min.js:30:14600
My includes are as follows:
<!-- SCR JQuery --><script type='text/javascript' src='/Musse/dist/jquery/jquery.min.js'></script>
<!-- SCR Popper --><script type='text/javascript' src='/Musse/dist/mdb/js/popper.min.js'></script>
<!-- SCR Bootstrap --><script type='text/javascript' src='/Musse/dist/bootstrap/js/bootstrap.min.js'></script>
<!-- SCR MDBootstrap --><script type='text/javascript' src='/Musse/dist/mdb/js/mdb.min.js'></script>
<!-- SCR MDB Calendar --><script type='text/javascript' src='/Musse/dist/mdb/js/addons/fullcalendar.min.js'></script>
Krzysztof Wilk staff answered 4 years ago
Hi!
You forgot to import the moment.min.js
file into your project. I think it causes a problem. If you import it - everything should work :)
Best regards
edwolfe commented 4 years ago
Where was it stated in the documentation to to include moment.min.js?
Krzysztof Wilk staff commented 4 years ago
Hi!
This file is included in the full calendar plugin package and it's linked in the file. That's our oversight that there's nothing about it on our documentation. Thanks for your support, we'll correct it as soon as possible :)
Best regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.19.2
- Device: PC
- Browser: Opera, Firefox, Edge
- OS: Windows 10
- Provided sample code: No
- Provided link: No
Krzysztof Wilk staff commented 4 years ago
Hi!
Could you also paste your custom JavaScript code? I think the mistake could be there.
Best regards
edwolfe commented 4 years ago
That's just it, I haven't added it yet; just including fullcalendar.min.js causes the error.
edwolfe commented 4 years ago
I also receive the following error in Dissenter browser. Slightly different than in the other browsers.
https://usercontent.mdbootstrap.com/mdb-images/support/f8fcc66c-b715-40f3-a534-6e1a89e0d034-Capture.jpg