Topic: Setup with minimal files, cannot get calendar working
basecamp free asked 3 years ago
*_Expected behavior_* Able to use plugins, specifically the calendar.
*_Actual behavior_* Uncaught SyntaxError: Unexpected token '.'
*_Resources (screenshots, code snippets etc.)_* I am using MDB5 and trying to install only the calendar plugin on my site through zip installation. The download zip has a LOT of files, and I am trying to figure out the minimum files I need to be able to run the calendar plugin.Here are my files:
However, I get the error above, which seems to be coming from the CSS file. How do I add this plugin to my existing site without the error and without loading mb of unnecessary files?
Grzegorz Bujański staff answered 3 years ago
It should be enough to import the calendar.min.css and calendar.min.js files into the project. How do you import these files in your project? Do you use webpack or just add imports in the HTML file?
basecamp free answered 3 years ago
Hello Grzegorz,
Thank you for your response: my issue was solved by checking how I imported the files and realizing that I was importing the css file as javascript. With your help and a good cup of coffee, this is now resolved.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: 3.2.0
- Device: All
- Browser: Chrome
- OS: Linux
- Provided sample code: No
- Provided link: No