Svelte Builds fail File /etc/ssl/certs does not exist

I am able to build and run locally.

Beginning of the build logs for some configuration information:

Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Cloning {removed git information)
Cloning completed: 480.000ms
Skipping build cache since Node.js version changed from “20.x” to “22.x”
Running “vercel build”
Vercel CLI 42.2.0
Detected pnpm-lock.yaml 9 which may be generated by pnpm@9.x or pnpm@10.x
Using pnpm@9.x based on project creation date

My build is failing with this error:

Using @sveltejs/adapter-vercel
error during build:
Error: File /etc/ssl/certs does not exist.
at Job.emitDependency (/vercel/path0/song-squad/node_modules/.pnpm/@vercel+nft@0.29.4_rollup@2.79.2/node_modules/@vercel/nft/out/node-file-trace.js:336:23)
at async /vercel/path0/song-squad/node_modules/.pnpm/@vercel+nft@0.29.4_rollup@2.79.2/node_modules/@vercel/nft/out/node-file-trace.js:360:21

This started about a day ago, all of the builds for the project are failing. I tried changing from node version 20 to 22 to see if that would help.

I’m using SvelteKit, not sure what other information would be helpful for debugging this.

I found a fix for this. I downgraded @sveltejs/kit from 2.21.4 to 2.21.2.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.