Getting console errors


Topic: Getting console errors

vijay80 pro premium priority asked 4 months ago

Expected behavior

Actual behavior I am not sure how to import the Modal as given in the document. When I try as given in the screenshot, I am getting console error. In addition to that I am also getting many more console errors. screenshots attached.

import statement Resources (screenshots, code snippets etc.) Cannot use import statement Other errors


Kamila Pieńkowska staff answered 4 months ago

Do you want to use es import to import some components or do you want to use umd import and use most/all components?

Are you using any bundler and how are you doing your imports?

Start from adding type="module" to script tag that links script.js in your index.html


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.3.2
  • Device: Lenovo AIO
  • Browser: Chrome
  • OS: Windows 11 Home
  • Provided sample code: No
  • Provided link: No