Hi folks,
This issue is making me pull my hair out and I’m starting to think their may be a platform-specific issue happening with Vercel. I’m trying to build my SvelteKit project using pnpm. My build succeeds both locally and on Vercel, with one caveat: on Vercel, instead of deploying, the build process just exits with SIGSEGV.
No other errors occur. I can’t reproduce locally (the command just succeeds and exits with 0).
Here’s what I’ve tried:
- Increase the node heap size during build using NODE_OPTIONS
- Downgrade from Vite 7.x to Vite 6.x
- Try a different SvelteKit adapter (adapter-node)
- Try a different package manager (pnpm → Bun)
- Regenerate my lockfile and make sure dependencies are up-to-date
- Lock node version to 22.17.1
Everything fails.
The only thing I’ve gotten to work is build my .vercel directory locally then deploy via vercel deploy. Of course, the bundle had all the wrong env variables in it, so the prod build doesn’t actually work like it’s supposed to, but at least it deployed. The .vercel directory is < 100 MB. I spent an hour with Claude trying to debug further but all of its suggestions I’ve already tried. I’m at the end of my wits here.
Help ![]()
