leaflet-rs icon indicating copy to clipboard operation
leaflet-rs copied to clipboard

Basic example - disallowed MIME type

Open byezy opened this issue 1 year ago • 1 comments

Hi, great work.

I tried running the basic example and the browser console (firefox) shows this issue:

Loading failed for the module with source “http://127.0.0.1:8080/pkg/leaflet_rs_example.js”. 127.0.0.1:8080:23:27 Loading module from “http://127.0.0.1:8080/pkg/leaflet_rs_example.js” was blocked because of a disallowed MIME type (“text/html”).

Google chrome also shows the issue as:

The integrity attribute is currently ignored for preload destinations that do not support subresource integrity. See https://crbug.com/981419 for more information leaflet_rs_example.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

How can I overcome this within the context of your example app?

Thanks!

byezy avatar Feb 09 '24 05:02 byezy

I couldn't even compile the example :see_no_evil: So I think that your server was not able to find the files. Could you please try the latest commit on master again?

flosse avatar Feb 09 '24 07:02 flosse