Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

failed to load module script: expected a javascript module script but the server responded with a mime type of "text/html"

Change your script from:
<script type="text/html" src="main.js"></script>
to:
<script type="module" src="main.js"></script>
 
PREVIOUS NEXT
Tagged: #failed #load #module #expected #javascript #module #script #server #responded #mime #type
ADD COMMENT
Topic
Name
4+8 =