-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Project builds but fails on deploy #9141
Comments
Hm. @Rich-Harris @dummdidumm Do we need to rethink using |
Yep, I'm using Nginx :) |
In the meantime, you should be able to configure nginx to return the appropriate |
Thank you, I'll see what I can do. |
Any chance you're using Firefox? The preload optimazation doesn't work there and you instead get a warning like this |
I'm using the latest chrome version |
I'm also seeing this problem but with
I tried the fix from #9142 in v1.8.3, but that seemed to have no effect. I had to revert to SvelteKit v1.5.0 for now. |
#9142 is unrelated to this issue. |
@tony19 is that an error you can reproduce or is it something in your logs? if the latter, it's probably because someone tried to load that file after a redeploy happened while they were on the site. it's generally harmless as the client will detect a new version and automatically reload |
@Rich-Harris It's the former... reproducible just by visiting the site. In my case, the site completely fails to load because of that error. I just get a blank screen. I'll try to create an isolated reproduction if needed. |
@tony19 yes please — it sounds like a separate issue though, so please open a new ticket |
This has broken our SPA builds too... we have the worst CDN on Azure and it doesn't let us serve .mjs files. This a deliberate change to force us over to Vercel 😂 ?? |
I also found that the precompress option fails after the switch to mjs, likely because of this glob
|
Relevant: https://pagure.io/mailcap/pull-request/10 On Arch Linux (and other distros perhaps), nginx pulls in mailcap for mime.types use by default. |
* fix: revert mjs extension usage by default, make it an option fixes #9141 * fix tests * reword * include .mjs files in precompression * convert to preloadStrategy option * default * DRY * Update packages/kit/types/index.d.ts * fix * use modulepreload on basic test * fix * another test --------- Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Rich Harris <[email protected]>
Describe the bug
Today I updated my project with an NPM Update and it no longer works correctly. This is what my package.json look like:
The project builds succesfully:
And this is what happens when it gets deployed:
Click here to see the issue for yourself
Reproduction
I could not reproduce this issue with a clean svelte-kit install. It is mostly a bug based on my project I guess... but this only happened after doing an NPM update today.
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: