\n[log] [nuxi] Nuxt 3.17.7 with Nitro 2.12.0\n\n\n\n### Additional context\n\n\u003Cimg width=\"1124\" height=\"376\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/fc91b10c-1ed0-456f-86a9-06b7a35c34cb\" />\n\n16:07:35.542 | [error] Cannot read properties of undefined (reading 'deployConfig')\n-- | --\n16:07:35.543 | at build:before (/opt/buildhome/repo/node_modules/nitropack/dist/presets/cloudflare/preset.mjs:79:39)\n16:07:35.543 | at /opt/buildhome/repo/node_modules/hookable/dist/index.mjs:48:66\n16:07:35.543 | at /opt/buildhome/repo/node_modules/hookable/dist/index.mjs:48:56\n16:07:35.543 | at async build (/opt/buildhome/repo/node_modules/nitropack/dist/core/index.mjs:1707:3)\n16:07:35.544 | at async /opt/buildhome/repo/node_modules/nuxt/dist/shared/nuxt.CJ7ZnOUY.mjs:4673:5\n16:07:35.545 | at async build (/opt/buildhome/repo/node_modules/nuxt/dist/shared/nuxt.CJ7ZnOUY.mjs:7278:3)\n16:07:35.545 | at async Object.run (/opt/buildhome/repo/node_modules/@nuxt/cli/dist/chunks/build.mjs:76:5)\n16:07:35.545 | at async Object.run (/opt/buildhome/repo/node_modules/@nuxt/cli/dist/chunks/generate.mjs:38:5)\n16:07:35.545 | at async runCommand (/opt/buildhome/repo/node_modules/citty/dist/index.mjs:316:16)\n16:07:35.546 | at async runCommand (/opt/buildhome/repo/node_modules/citty/dist/index.mjs:307:11)\n16:07:35.546 | \n16:07:35.546 | [error] Cannot read properties of undefined (reading 'deployConfig')\n\n\n### Logs\n\n```shell-script\n\n```",[3206],{"name":3155,"color":3156},32645,"Cloudflare Pages Static v2.12.0 Nitro Deployment Fail","2025-07-16T17:37:18Z","https://github.com/nuxt/nuxt/issues/32645",0.6634465,{"labels":3213,"number":3220,"owner":3161,"repository":3161,"state":3162,"title":3221,"updated_at":3222,"url":3223,"score":3224},[3214,3215,3218,3219],{"name":3152,"color":3153},{"name":3216,"color":3217},"bug","d73a4a",{"name":3182,"color":3183},{"name":3185,"color":3186},19441,"Failed: build output directory contains links to files that can't be accessed","2023-05-10T11:47:11Z","https://github.com/nuxt/nuxt/issues/19441",0.66468465,{"description":3226,"labels":3227,"number":3233,"owner":3161,"repository":3161,"state":3162,"title":3234,"updated_at":3235,"url":3236,"score":3237},"### Environment\n\nEnvironment\nOperating System: Windows_NT\nNode Version: v23.7.0\nNuxt Version: 3.15.4\nNitro Version: 2.11.4\nPackage Manager: npm@10.8.2\nBuilder: -\nUser Config: -\nRuntime Modules: -\nBuild Modules: -\n\n### Reproduction\n\nCompile for Cloudflare, and deploy via pages\n\n### Describe the bug\n\nWhen updating the version to 3.15.4, this error started to appear when deploying to cloudflare pages (Worker):\n Error: Failed to publish your Function. Got error: Uncaught ReferenceError: Cannot access '_PerformanceObserver' before initialization at chunks/nitro/nitro.mjs:1:206985\n\n\n\n### Additional context\n\nI tried several things, \nfrom overriding nitro to 2.10 (as the other bug report suggested https://github.com/nuxt/nuxt/issues/29767)\nchanging the node version, pnpm version, changing it to bun. \nBut with the latest nuxt, this issue sticks. \n\n### Logs\n\n```shell-script\n16:22:23.495 | \n16:22:23.496 | Found wrangler.toml file. Reading build configuration...\n16:22:23.504 | pages_build_output_dir: dist\n16:22:23.504 | Build environment variables:\n16:22:23.504 | - ENVIRONMENT: staging\n16:22:23.504 | - NODE_ENV: test\n16:22:23.504 | - NODE_VERSION: 18\n16:22:23.504 | - PNPM_VERSION: 10\n16:22:24.608 | Successfully read wrangler.toml file.\n16:22:24.609 | Found _worker.js in output directory. Uploading.\n16:22:24.616 | ⛅️ wrangler 3.101.0\n16:22:24.616 | -------------------\n16:22:25.688 | Attaching additional modules:\n16:22:25.745 | ┌──────────────────────────────────────────────────────────┬───────────────┬─────────────┐\n16:22:25.745 | │ Name │ Type │ Size │\n\n16:22:25.802 | ├──────────────────────────────────────────────────────────┼───────────────┼─────────────┤\n16:22:25.802 | │ chunks/virtual/_raw-helpers.mjs │ esm │ 0.20 KiB │\n16:22:25.802 | ├──────────────────────────────────────────────────────────┼───────────────┼─────────────┤\n16:22:25.802 | │ chunks/virtual/_virtual_spa-template.mjs │ esm │ 0.08 KiB │\n16:22:25.803 | ├──────────────────────────────────────────────────────────┼───────────────┼─────────────┤\n16:22:25.803 | │ chunks/virtual/child-sources.mjs │ esm │ 0.07 KiB │\n16:22:25.803 | ├──────────────────────────────────────────────────────────┼───────────────┼─────────────┤\n16:22:25.803 | │ chunks/virtual/global-sources.mjs │ esm │ 0.78 KiB │\n16:22:25.803 | ├──────────────────────────────────────────────────────────┼───────────────┼─────────────┤\n16:22:25.803 | │ wasm/index_bg-dd4dd8881e2df4e6.wasm │ compiled-wasm │ 2420.51 KiB │\n16:22:25.803 | ├──────────────────────────────────────────────────────────┼───────────────┼─────────────┤\n16:22:25.803 | │ Total (310 modules) │ │ 8659.64 KiB │\n16:22:25.804 | └──────────────────────────────────────────────────────────┴───────────────┴─────────────┘\n16:22:25.815 | ✨ Compiled Worker successfully\n16:22:27.186 | Found _routes.json in output directory. Uploading.\n16:22:27.207 | Validating asset output directory\n16:22:30.498 | Deploying your site to Cloudflare's global network...\n16:22:33.237 | Parsed 1 valid redirect rule.\n16:22:33.237 | Parsed 5 valid header rules.\n16:22:34.664 | Uploading... (46/144)\n16:22:35.626 | Uploading... (78/144)\n16:22:36.144 | Uploading... (111/144)\n16:22:37.805 | Uploading... (144/144)\n16:22:37.805 | ✨ Success! Uploaded 98 files (46 already uploaded) (3.55 sec)\n16:22:37.805 | \n16:22:38.463 | ✨ Upload complete!\n16:22:40.386 | Uploading to dependency cache\n16:22:40.396 | Skipping build output cache as it's not supported for your project\n16:22:47.464 | Success: Dependencies uploaded to build cache.\n16:22:49.060 | Success: Assets published!\n16:22:51.505 | Error: Failed to publish your Function. Got error: Uncaught ReferenceError: Cannot access '_PerformanceObserver' before initialization at chunks/nitro/nitro.mjs:1:206985\n```",[3228,3229,3230],{"name":3155,"color":3156},{"name":3182,"color":3183},{"name":3231,"color":3232},"possible regression","B90A42",31257,"Cloudflare pages deploy error: Cannot access '_PerformanceObserver' before initialization","2025-03-08T23:26:55Z","https://github.com/nuxt/nuxt/issues/31257",0.6675092,{"description":3239,"labels":3240,"number":3244,"owner":3161,"repository":3161,"state":3162,"title":3245,"updated_at":3246,"url":3247,"score":3248},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.18.2`\r\n- Nuxt Version: `3.8.0`\r\n- CLI Version: `3.9.1`\r\n- Nitro Version: `2.7.0`\r\n- Package Manager: `npm@9.8.1`\r\n- Builder: `-`\r\n- User Config: `nitro`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\n\n### Reproduction\n\nhttps://github.com/AaronBeaudoin/nuxt-3-issue-1\n\n### Describe the bug\n\nDeploying to Cloudflare Pages worked fine on 3.7.4, but on 3.8 it fails with this error:\r\n\r\n> Error: Failed to publish your Function. Got error: Error 8000057: Overlapping rules in `_routes.json` are not allowed. Rule \"/_nuxt/builds/\\*\" is overlapped by \"/_nuxt/\\*\". Remove one of the rules to continue.\r\n\r\nJust fork my reproduction above and try to deploy it to Cloudflare Pages and you should get the same error.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3241,3242,3243],{"name":3152,"color":3153},{"name":3155,"color":3156},{"name":3182,"color":3183},23796,"Nuxt 3.8 can no longer deploy to Cloudflare Pages","2023-10-28T13:56:34Z","https://github.com/nuxt/nuxt/issues/23796",0.66755295,{"description":3250,"labels":3251,"number":3253,"owner":3161,"repository":3161,"state":3162,"title":3254,"updated_at":3255,"url":3256,"score":3257},"The worker output of `NITRO_PRESET=cloudflare nuxt generate` is broken.\r\n\r\n* Tested Node versions: v15.14.0, v14.16.1\r\n\r\n1. Create a repo with Nuxt + Nitro (v0.5.2). Set the generate command to the one shown above.\r\n2. Ensure a correct `wrangler.toml` is present\r\n3. Run `NITRO_PRESET=cloudflare nuxt generate && wrangler dev`\r\n4. See the following output:\r\n\r\n```\r\n\r\n✔ Ready to run wrangler publish 20:45:03\r\n✨ Done in 9.02s.\r\nup to date in 0.552s\r\nfound 0 vulnerabilities\r\n\r\n👀 ./.output/server/index.js 1:423701\r\nModule parse failed: Unexpected token (1:423701)\r\n```\r\n\r\nThe corresponding part is `return new Promise(((R,N)=>{Hs.renderToString(B,P,((B,H)=>{const z=[zs,P].map((B=>B?._styles?.default)).filter(Boolean);return P._styles||(P._styles={}),P._styles.default={ids:[...z.map((B=>B.ids))],css:z.map((B=>B.css)).join(\"\"),media:z.map((B=>B.media)).join(\"\")},B?N(B):R(H)}))}))`(`B=>B?._styles?.default` to be precise). It might be the optional chaining?\r\n\r\n\r\nIssue not reproducible on Nitro `v0.5.0`\r\n\r\nRelated commit: https://github.com/nuxt/framework/commit/e5df083f6016219884d3d298e5d7ca2cf4a51d0b",[3252],{"name":3152,"color":3153},10998,"[CF] Worker output is broken","2023-01-19T14:31:46Z","https://github.com/nuxt/nuxt/issues/10998",0.6701515,{"description":3250,"labels":3259,"number":3261,"owner":3161,"repository":3161,"state":3162,"title":3254,"updated_at":3262,"url":3263,"score":3257},[3260],{"name":3152,"color":3153},11023,"2023-01-19T14:49:13Z","https://github.com/nuxt/nuxt/issues/11023",["Reactive",3265],{},["Set"],["ShallowReactive",3268],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f03K1h8V2PGPq_IO2VS4lB_Ys7G6RhrUFnNv08ALlz6M":-1},"/nuxt/nuxt/12244"]