kit: Project builds but fails on deploy
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
System:
OS: Linux 6.1 Arch Linux
CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Memory: 29.83 GB / 31.30 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 19.6.1 - /usr/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 8.19.2 - /usr/bin/npm
Browsers:
Chromium: 110.0.5481.100
Severity
blocking all usage of SvelteKit
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 16 (9 by maintainers)
Commits related to this issue
- fix: revert mjs extension usage by default, make it an option fixes #9141 — committed to sveltejs/kit by dummdidumm a year ago
- fix: revert mjs extension usage by default, make it an option (#9179) * fix: revert mjs extension usage by default, make it an option fixes #9141 * fix tests * reword * include .mjs files... — committed to sveltejs/kit by dummdidumm a year ago
@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.
#9142 is unrelated to this issue.