Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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:

enter image description here

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.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • 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