Basic example - disallowed MIME type
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
integrityattribute 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!
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?