Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground fails to load script module due to incorrect MIME type #161

Open
skykanin opened this issue Nov 7, 2023 · 4 comments
Open

Playground fails to load script module due to incorrect MIME type #161

skykanin opened this issue Nov 7, 2023 · 4 comments

Comments

@skykanin
Copy link

skykanin commented Nov 7, 2023

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
Copy link
Author

skykanin commented Nov 7, 2023

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

@milomg
Copy link
Member

milomg commented Nov 8, 2023

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

@skykanin
Copy link
Author

skykanin commented Nov 9, 2023

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

@paganaye
Copy link

paganaye commented Nov 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants