Open e111077 opened 6 years ago
Is it going to be fixed?
Actually, it doesn't matter where it's in <head>
or in <body>
, it doesn't work in any of them.
Just created a simple project with an html file and a javascript file. Html file contains 2 external js links. Getting the same MIME error. It doesn't matter whether the script files are in head or body, error is same.
I was working on sample that was working and then just stopped working with this error. Has anybody worked out what is causing it because I am having difficulty working out what I can have changed that caused this - especially since as far as I can work out the error starts after the scripts are executed!
this has to be the worst error in the world. It's so frustrating.
When you have a script that is not in the head of a document, the javascript it loads is labeled with the wrong mime type (
'text/html'
). See the native browser console in the following example:https://stackblitz.com/edit/wrong-mime-type?file=index.html