- 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
- During the Qwik build process, a virtual module
@qwik-city-not-found-pathsis generated. - When the Netlify Edge Bundler starts packaging
entry.netlify-edge, it attempts tostatthis file. However, since the build process has already finished or the bundler is running in a different context, the file in/tmpis missing, leading to theENOENTerror.
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?