Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
Trouble with using an npm package (leaflet addon) in html ``` I get the following error ```Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.```. I tried doing the thing where you add 'types': 'module' to the packahe.json but this didn't do anything to help –
Steve Ahlswede
Nov 19 '20 at 18:26
Actually, nevermind that error was from a different import attempt I forgot to remove. It looks like it is working now. Not sure why it didn't work the last time I tried it, but thanks anyways :)
–
Steve Ahlswede
Nov 19 '20 at 18:31
0 Answers
0