solid-playground
solid-playground copied to clipboard
Playground fails to load script module due to incorrect MIME type
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
.
Enabling my VPN fixes the issue so I'm guessing this is a DNS issue with https://jspm.dev
One solution would be to change the cdn used by clicking the tab to the right of main.tsx
Yeah, changing the "solid-js/web"
entry in the import map to "https://jspm.dev/npm:solid-js/web"
works as a workaround.
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: