Edge Functions bundling failed for Qwik: ENOENT: no such file or directory, stat ‘@qwik-city-not-found-paths.js’ (Vite 7)

  • netlify site name: subtle-lolly-b23fec.netlify.app (but it doesn't work now cause building has failed)

I am experiencing a consistent build failure during the “Edge Functions bundling” stage when deploying a Qwik City project to Netlify (i just tried building a brand new hello-world project and the result is the same). The build works perfectly on my local machine, but fails on Netlify CI with an ENOENT error looking for a temporary path that seems to be related to Qwik’s `qwik-city-not-found-paths.js` modules.

8:09:11 PM: Packaging Edge Functions from .netlify/edge-functions directory:
8:09:11 PM:  - entry.netlify-edge
8:09:11 PM: node:internal/process/promises:394
8:09:11 PM:     triggerUncaughtException(err, true /* fromPromise */);
8:09:11 PM:     ^
8:09:11 PM: [Error: ENOENT: no such file or directory, stat '/tmp/tmp-2269-6qAdCcbGEFml/qwik-city-not-found-paths.js'] {
8:09:11 PM:   errno: -2,
8:09:11 PM:   code: 'ENOENT',
8:09:11 PM:   syscall: 'stat',
8:09:11 PM:   path: '/tmp/tmp-2269-6qAdCcbGEFml/qwik-city-not-found-paths.js'
8:09:11 PM: }

Environment:

  • Framework: Qwik City v1.19.2

  • Vite Version: v7.2.6

  • Node Version: v22.22.1 (Netlify Build Environment)

  • Adapter: @builder.io/qwik-city/adapters/netlify-edge/vite

  1. During the Qwik build process, a virtual module @qwik-city-not-found-paths is generated.
  2. When the Netlify Edge Bundler starts packaging entry.netlify-edge, it attempts to stat this file. However, since the build process has already finished or the bundler is running in a different context, the file in /tmp is missing, leading to the ENOENT error.

I’ve also tried:

  • Upgraded all dependencies to the latest versions (Qwik 1.19.2, Vite 7 (as qwik doesnt support vite 8 yet), @netlifynetlify/edge-functions 2.0.0 to 3.0.5).

  • Cleared build cache and redeployed.

  • Local builds succeed without issues but still the same error on Netlify Edge Functions build

I’ve put the full log on here: 11:36:34 AM: Netlify Build 11: - Pastebin.com

How can I resolve this ENOENT error?

wait i created a duplicate post how am i supposed to make it go awayy

Hey @toledo :wave:,
Thanks for reaching out!

We’ve gone ahead and created a support ticket for you, so our team can follow up with you directly via email from the help desk. Our Support crew will be in touch with you by email soon.

Great news: these days anyone can reach out to Netlify Support. First, you can try getting an answer using Ask Netlify, our helpful AI search tool. If your question isn’t answered there, you can submit a ticket using the support form, and we’ll take it from there.

We’re keeping the community around for swapping ideas, sharing tips and tricks, and talking shop with other folks building on the platform — but for support issues, tickets are the way to go.

Thanks for being here, and keep an eye out for that email from us!