stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.32k stars 920 forks source link

Script tags not in <head> load wrong mime type #447

Open e111077 opened 6 years ago

e111077 commented 6 years ago

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

seveves commented 6 years ago

246

develax commented 5 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.

gegobyte commented 4 years ago

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.

runette commented 4 years ago

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!

xtianus79 commented 1 year ago

this has to be the worst error in the world. It's so frustrating.