-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
MIME type error for deployed online version, not locally #55
Comments
I am able to reproduce this with a fresh |
I also tried appending |
I can see something broke on sep 29th https://github.com/HalfdanJ/svelte-adapter-appengine/actions/runs/3154256956, typically because something changed in sveltekit latest. Until I fix this, try and downgrade to sveltekit released before that date. |
Hmm the test error was due to this issue. It was just because the test app had changed (#56), so going to need to debug this more. |
@Lootwig I havent been able to reproduce this issue when deploying a vanilla example app from sveltekit (https://e2e-test-dot-svelte-demo-329602.uc.r.appspot.com/). Can you provide any additional details that can help me? |
I'm also being affected by this issue |
Even though running
vite dev
and alsovite preview
work locally, after deployment both chrome and safari aren't loading the JS due to this error (this is the chrome version, safari uses different wording):Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
I'm not sure whether this is due to a change in the adapter or in sveltekit.
This occurs with adapter version 0.9.1 and sveltekit build 504 - I tried downgrading to 0.9.0 and 477, but the behavior is the same (also, undoing all code changes done in the project since using these older versions does not make a difference).
The text was updated successfully, but these errors were encountered: