tryphotino / photino.NET

https://tryphotino.io
Apache License 2.0
833 stars 68 forks source link

Unable to import in JS modules #181

Closed gnalvesteffer closed 2 months ago

gnalvesteffer commented 2 months ago

Hi, if I have the following example script tag in my html file <script src="js/foo.js" type="module"></script> and foo.js contains an import, such as import { Bar } from "js/bar.js";

I get the following error:

Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
gnalvesteffer commented 2 months ago

Disregard, looks like I may have just supplied the wrong path to the JS file, as I see in the response when requesting that resource, that I get the following message in the body: There is no content at...