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:

20230220_151727

The project builds succesfully: 20230220_151653

And this is what happens when it gets deployed:

20230220_151833

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

Most upvoted comments

@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.