solid-playground icon indicating copy to clipboard operation
solid-playground copied to clipboard

Playground fails to load script module due to incorrect MIME type

Open skykanin opened this issue 8 months ago • 4 comments

Code in the solid playground doesn't render any output. In the console I see this error: Loading module from “https://jspm.dev/solid-js/web” was blocked because of a disallowed MIME type (“application/octet-stream”).

I was able to reproduce this issue both in Firefox version 117.0.1 and Google Chrome version 117.0.5938.88.

image

skykanin avatar Nov 07 '23 10:11 skykanin

Enabling my VPN fixes the issue so I'm guessing this is a DNS issue with https://jspm.dev

skykanin avatar Nov 07 '23 21:11 skykanin

One solution would be to change the cdn used by clicking the tab to the right of main.tsx

milomg avatar Nov 08 '23 18:11 milomg

Yeah, changing the "solid-js/web" entry in the import map to "https://jspm.dev/npm:solid-js/web" works as a workaround.

skykanin avatar Nov 09 '23 17:11 skykanin

My first 5 minutes with the framework did not go well. Perhaps the playground needs a fallback mechanism. For those who starts the tutorial it is just a matter of adding the text "npm:" here: image

paganaye avatar Nov 15 '23 08:11 paganaye