Topic: Uncaught TypeError: Failed to resolve module specifier "tw-elements"

jbElmax free asked 1 year ago


Uncaught TypeError: Failed to resolve module specifier "tw-elements". Relative references must start with either "/", "./", or "../".

I follow the steps in the tutorial, then I create a new html page by copying the index.html page, the other pages is working fine in my local but when publish that is the error in the console.

this is the link: https://jbelmax-tailwind-elements.mdbgo.io/projects.html


Bartosz Cylwik staff answered 1 year ago


Hi! Try adding type="module" to the script tag of your js file.



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

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.1
  • Device: Laptop
  • Browser: chrome
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: Yes