\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```",[3019],{"name":3020,"color":3021},"pending triage","E99695",32645,"nuxt","closed","Cloudflare Pages Static v2.12.0 Nitro Deployment Fail","2025-07-16T17:37:18Z","https://github.com/nuxt/nuxt/issues/32645",0.5954323,{"description":3030,"labels":3031,"number":3041,"owner":3023,"repository":3023,"state":3024,"title":3042,"updated_at":3043,"url":3044,"score":3045},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.16.1`\r\n- Nuxt Version: `3.6.0`\r\n- Nitro Version: `2.5.1`\r\n- Package Manager: `npm@9.5.1`\r\n- Builder: `vite`\r\n- User Config: `devtools`, `modules`, `apollo`\r\n- Runtime Modules: `@nuxtjs/apollo@5.0.0-alpha.6`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nhttps://github.com/floatingpixels/nuxt-apollo.git\n\n### Describe the bug\n\nI'm trying to deploy a Nuxt app to cloudflare pages. The app builds and runs fine locally, but the deployment to cloudflare pages fails. I'm using the Nuxt Apollo module, but I think the error might not be specific to the module, but has something to do with how Nuxt deploys on Cloudflare Pages. When deploying to Cloudflare pages I get the following error:\r\n\r\n```\r\n20:41:08.091 | [success] Server built in 1589ms\r\n-- | --\r\n20:41:08.108 | [success] [nitro] Generated public dist\r\n20:41:08.168 | [info] [nitro] Building Nitro Server (preset: `cloudflare-pages`)\r\n20:41:12.418 | (inject plugin) rollup-plugin-inject: failed to parse /opt/buildhome/repo/node_modules/graphql/jsutils/instanceOf.mjs. Consider restricting the plugin to particular files via options.include\r\n20:41:12.421 | [error] [nitro] RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)\r\n20:41:12.422 | \r\n20:41:12.422 | \r\n20:41:12.422 | 10: /* c8 ignore next 6 */\r\n20:41:12.422 | 11: // FIXME: https://github.com/graphql/graphql-js/issues/2317\r\n20:41:12.423 | 12: globalThis.process && globalThis.process.env.NODE_ENV === 'production'\r\n20:41:12.423 | ^\r\n20:41:12.423 | 13: ? function instanceOf(value, constructor) {\r\n20:41:12.423 | 14: return value instanceof constructor;\r\n20:41:12.424 | [error] Unexpected token (Note that you need plugins to import files that are not JavaScript)\r\n20:41:12.425 | at error (node_modules/rollup/dist/es/shared/node-entry.js:2245:30)\r\n20:41:12.425 | at Module.error (node_modules/rollup/dist/es/shared/node-entry.js:13572:16)\r\n20:41:12.425 | at Module.tryParse (node_modules/rollup/dist/es/shared/node-entry.js:14298:25)\r\n20:41:12.425 | at Module.setSource (node_modules/rollup/dist/es/shared/node-entry.js:13899:39)\r\n20:41:12.425 | at ModuleLoader.addModuleSource (node_modules/rollup/dist/es/shared/node-entry.js:24422:20)\r\n20:41:12.472 | Failed: Error while executing user command. Exited with error code: 1\r\n20:41:12.482 | Failed: build command exited with code: 1\r\n20:41:13.591 | Failed: error occurred while running build command\r\n```\r\n\r\nThis implies the build works fine, but rollup-plugin-inject fails to parse the graphql module. I'm not sure how to solve this, I searched through issues here in nuxt, and also over at nuxt apollo, but I don't know how to go about fixing this. Any help would be appreciated!\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3032,3035,3038],{"name":3033,"color":3034},"3.x","29bc7f",{"name":3036,"color":3037},"nitro","bfd4f2",{"name":3039,"color":3040},"upstream","E8A36D",21768,"Nuxt cloudflare-pages deployment fails","2023-07-23T09:36:47Z","https://github.com/nuxt/nuxt/issues/21768",0.60016537,{"description":3047,"labels":3048,"number":3057,"owner":3023,"repository":3023,"state":3024,"title":3058,"updated_at":3059,"url":3060,"score":3061},"Hi,\nI want to deploy my Nuxt app on Cloudflare-pages via Nuxt-hub. \nThe problem I have is that I get an error on Cloudflare that I can't upload my function. \n\n```\nError: Failed to publish your Function. Got error: Uncaught TypeError: Cannot read properties of undefined (reading 'node')\n at chunks/nitro/nitro.mjs:1:407456\n at chunks/nitro/nitro.mjs:1:441191\n```\n\nI tried everything (removing all dependencies etc.) but nothing worked for me. \n\nHow can I fix this issue?\n\nNuxt-Version: 3.14.1592",[3049,3050,3051,3054],{"name":3020,"color":3021},{"name":3036,"color":3037},{"name":3052,"color":3053},"needs reproduction","FBCA04",{"name":3055,"color":3056},"closed-by-bot","ededed",30207,"Nuxt Deployment on Nuxt-hub failing","2024-12-17T02:06:30Z","https://github.com/nuxt/nuxt/issues/30207",0.6037181,{"description":3063,"labels":3064,"number":3068,"owner":3023,"repository":3023,"state":3024,"title":3069,"updated_at":3070,"url":3071,"score":3072},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v21.7.1`\r\n- Nuxt Version: `3.12.1`\r\n- CLI Version: `3.12.0`\r\n- Nitro Version: `2.9.6`\r\n- Package Manager: `yarn@1.22.22`\r\n- Builder: `-`\r\n- User Config: `app`, `typescript`, `devServerHandlers`, `vite`, `runtimeConfig`, `sourcemap`, `modules`, `build`, `css`, `tailwindcss`, `ignore`, `plugins`, `graphql`, `sitemap`, `robots`, `experimental`\r\n- Runtime Modules: `@nuxtjs/tailwindcss@6.12.0`, `nuxt-graphql-request@8.0.2`, `@nuxtjs/sitemap@5.2.0`, `@nuxtjs/robots@3.0.0`, `@nuxt/test-utils/module@3.13.1`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nN/A\n\n### Describe the bug\n\nHi guys, after fixing the [first issue](https://github.com/nuxt/nuxt/issues/28228) running my app locally I need to deploy my changes to Cloudflare Pages.\r\n\r\nFirst, I don't know if this is the right place to ask this question, if not, please let me know where I should ask.\r\n\r\nEverything appears to be fine until the end of the deployment where I see the following: `Error: Failed to publish your Function. Got error: Unknown internal error occurred.`.\r\n\r\nThis project contains no custom functions.\r\n\r\n## What has worked for me so far:\r\n- Running locally `nuxi build && nuxi preview`\r\n- Deploying my app to Vercel \r\n- Deploying my app to AWS Amplify \r\n\r\n## What has not worked for me so far:\r\n- `nuxi preview --preset=cloudflare-pages && npx wrangler pages dev dist/`. Here is the log of what I see:\r\n```\r\n✘ [ERROR] [nuxt] [request error] [unhandled] [500] s55 is not a function\r\n\r\nat null.\u003Canonymous>\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/build/server.mjs:1:388642)\r\n at .wrangler/tmp/pages-sG8Vax/chunks/build/server.mjs\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/build/server.mjs:1:388680)\r\n at __init\r\n (file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:12:59)\r\n at null.\u003Canonymous>\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/routes/renderer.mjs:1:128648)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:178324:20)\r\n at async Kr4\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/routes/renderer.mjs:1:130385)\r\n at async Object.handler\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/routes/renderer.mjs:1:132890)\r\n at async Object.handler\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/runtime.mjs:1:73437)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:179955:7)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:183529:26)\r\n\r\n\r\n [wrangler:inf] GET / 500 Internal Server Error (102ms)\r\n ✘ [ERROR] [nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'default')\r\n\r\n at null.\u003Canonymous>\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/routes/renderer.mjs:1:128722)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:178324:20)\r\n at async Kr4\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/routes/renderer.mjs:1:130385)\r\n at async Object.handler\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/routes/renderer.mjs:1:132890)\r\n at async Object.handler\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/runtime.mjs:1:73437)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:179955:7)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:183529:26)\r\n at async errorHandler\r\n (file:./.wrangler/tmp/pages-sG8Vax/chunks/runtime.mjs:1:139411)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:179958:76)\r\n at null.\u003Canonymous> (async\r\n file:./.wrangler/tmp/dev-oHzJAU/qfbkky8988l.js:183529:26)\r\n```\r\n\r\n- Deploying my changes on Cloudflare pages. Here are the latest logs I see when deploying my app:\r\n```\r\n17:31:00.263 | ✨ Compiled Worker successfully\r\n-- | --\r\n17:31:01.065 | Found _routes.json in output directory. Uploading.\r\n17:31:01.084 | Validating asset output directory\r\n17:31:03.597 | Deploying your site to Cloudflare's global network...\r\n17:31:06.716 | Parsed 354 valid redirect rules.\r\n17:31:06.716 | Parsed 3 valid header rules.\r\n17:31:08.451 | Uploading... (964/967)\r\n17:31:08.877 | Uploading... (965/967)\r\n17:31:08.991 | Uploading... (966/967)\r\n17:31:09.080 | Uploading... (967/967)\r\n17:31:09.080 | ✨ Success! Uploaded 3 files (964 already uploaded) (1.48 sec)\r\n17:31:09.080 | \r\n17:31:09.885 | ✨ Upload complete!\r\n17:31:13.556 | Success: Assets published!\r\n17:31:19.010 | Error: Failed to publish your Function. Got error: Unknown internal error occurred.\r\n17:31:19.010 | Note: Not all logs could be displayed, click \"Download log\" to view more\r\n```\r\n\r\nI have created a Cloudflare ticket to get more information about that `Unknown internal error`, however, I haven't received a response in more than a week. \r\n\r\nIs there anything I can do in the meantime to see more information about the error? Any hint would be appreciated!\r\n\r\nKind regards,\r\nLuis.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3065,3066,3067],{"name":3020,"color":3021},{"name":3052,"color":3053},{"name":3055,"color":3056},28304,"Issue deploying in Cloudflare Pages with SSR enabled (Error: Failed to publish your Function. Got error: Unknown internal error occurred)","2024-09-13T03:04:03Z","https://github.com/nuxt/nuxt/issues/28304",0.6122162,{"description":3074,"labels":3075,"number":3079,"owner":3023,"repository":3023,"state":3024,"title":3080,"updated_at":3081,"url":3082,"score":3083},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.16.1`\r\n- Nuxt Version: `3.6.0`\r\n- Nitro Version: `2.5.1`\r\n- Package Manager: `yarn@1.22.19`\r\n- Builder: `vite`\r\n- User Config: `app`, `devtools`, `vite`, `build`, `vue`, `css`, `modules`, `postcss`, `components`, `strapi`, `image`\r\n- Runtime Modules: `@nuxtjs/strapi@1.9.3`, `@pinia/nuxt@0.4.11`, `@nuxt/image@1.0.0-rc.1`\r\n- Build Modules: `-`\n\n### Reproduction\n\nI'm trying to deploy my site in SSR mode, but whenever I try either on pages or as a worker it fails. I _think_ its because of google maps, whenever I add in @fawmi/vue-google-maps or vue3-google-map on a clean install the error happens, but this is my full package.json just in case its helpful.\r\n\r\nPackage.json:\r\n```\r\n\"devDependencies\": {\r\n \"@nuxt/devtools\": \"latest\",\r\n \"@nuxt/image\": \"^1.0.0-rc.1\",\r\n \"@types/node\": \"^18\",\r\n \"autoprefixer\": \"^10.4.14\",\r\n \"nuxt\": \"^3.6.0\",\r\n \"postcss\": \"^8.4.24\",\r\n \"prisma\": \"^4.16.1\",\r\n \"sass\": \"^1.63.6\",\r\n \"sass-loader\": \"^13.3.2\",\r\n \"tailwindcss\": \"^3.3.2\",\r\n \"typescript\": \"latest\",\r\n },\r\n \"dependencies\": {\r\n \"@fawmi/vue-google-maps\": \"0.9.72\",\r\n \"@nuxtjs/strapi\": \"^1.9.3\",\r\n \"axios\": \"^1.4.0\",\r\n \"dayjs\": \"^1.11.8\",\r\n \"dotenv\": \"^16.3.1\",\r\n \"node-ical\": \"^0.16.1\",\r\n \"pinia\": \"^2.1.4\",\r\n \"postcode\": \"^5.1.0\",\r\n \"swiper\": \"^10.0.2\",\r\n \"v-calendar\": \"^2.4.1\",\r\n \"vite-svg-loader\": \"^4.0.0\",\r\n \"vue-imask\": \"^7.0.1\",\r\n \"vue-social-sharing\": \"^3.0.9\",\r\n \"vue3-tel-input\": \"^1.0.4\"\r\n }\r\n```\r\n\r\nWrangler.toml:\r\n```\r\nmain = \"./.output/server/index.mjs\"\r\nworkers_dev = true\r\ncompatibility_date = \"2022-09-01\"\r\naccount_id = \"***\"\r\n[site]\r\nbucket = \".output/public\"\r\n```\n\n### Describe the bug\n\nBuild fails with error defineComponent is not defined. It fails during the deploy/publish to cloudflare stage, as below:\r\n\r\n\n\n### Additional context\n\nI have followed https://nitro.unjs.io/deploy/providers/cloudflare but keep hitting this same error and I don't know where to even begin debugging this. Does anyone have any ideas?\n\n### Logs\n\n_No response_",[3076,3077,3078],{"name":3033,"color":3034},{"name":3020,"color":3021},{"name":3052,"color":3053},21938,"Cannot deploy to cloudflare","2023-07-05T11:02:05Z","https://github.com/nuxt/nuxt/issues/21938",0.612739,{"description":3085,"labels":3086,"number":3090,"owner":3023,"repository":3023,"state":3024,"title":3091,"updated_at":3092,"url":3093,"score":3094},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v18.15.0\r\n- Nuxt Version: 3.7.3\r\n- CLI Version: 3.8.3\r\n- Nitro Version: 2.6.3\r\n- Package Manager: npm@9.5.0\r\n- Builder: -\r\n- User Config: runtimeConfig, modules, image, sitemap, jsoneditor, colorMode, css, routeRules, nitro\r\n- Runtime Modules: @nuxtjs/tailwindcss@6.8.0, @pinia/nuxt@0.4.11, @pinia-plugin-persistedstate/nuxt@1.1.1, @nuxtjs/color-mode@3.3.0, nuxt-jsoneditor@1.7.0, nuxt-simple-sitemap@0.5.10, @nuxt/image-edge@1.0.0-rc.2-28244125.e6e72be\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\nTested on new small project working without issue\r\n\r\n### Describe the bug\r\n\r\n\r\n21:06:57.425 | [log] [nitro] └─ /sitemap.xml (5ms)\r\n-- | --\r\n21:06:57.441 | [info] [nitro] Building Nitro Server (preset: `cloudflare-pages`)\r\n21:08:09.285 | [error] [nitro] SyntaxError: 'with' in strict mode (10:4) in /opt/buildhome/repo/node_modules/domino/lib/sloppy.js\r\n21:08:09.285 | \r\n21:08:09.285 | \r\n21:08:09.286 | 8: Window_run: function _run(code, file) {\r\n21:08:09.286 | 9: if (file) code += '\\n//@ sourceURL=' + file;\r\n21:08:09.286 | 10: with(this) eval(code);\r\n21:08:09.286 | ^\r\n21:08:09.286 | 11: },\r\n21:08:09.286 | 12: EventHandlerBuilder_build: function build() {\r\n21:08:09.288 | [error] 'with' in strict mode (10:4) in /opt/buildhome/repo/node_modules/domino/lib/sloppy.js\r\n21:08:09.288 | at pp$4.raise (node_modules/rollup/dist/es/shared/node-entry.js:21616:13)\r\n21:08:09.288 | at pp$8.parseWithStatement (node_modules/rollup/dist/es/shared/node-entry.js:19252:27)\r\n21:08:09.289 | at pp$8.parseStatement (node_modules/rollup/dist/es/shared/node-entry.js:18981:35)\r\n21:08:09.289 | at pp$8.parseBlock (node_modules/rollup/dist/es/shared/node-entry.js:19306:21)\r\n21:08:09.289 | at pp$5.parseFunctionBody (node_modules/rollup/dist/es/shared/node-entry.js:21435:22)\r\n21:08:09.289 | at pp$8.parseFunction (node_modules/rollup/dist/es/shared/node-entry.js:19428:8)\r\n21:08:09.289 | at pp$5.parseExprAtom (node_modules/rollup/dist/es/shared/node-entry.js:20961:17)\r\n21:08:09.289 | at pp$5.parseExprSubscripts (node_modules/rollup/dist/es/shared/node-entry.js:20764:19)\r\n21:08:09.289 | at pp$5.parseMaybeUnary (node_modules/rollup/dist/es/shared/node-entry.js:20730:17)\r\n21:08:09.289 | at pp$5.parseExprOps (node_modules/rollup/dist/es/shared/node-entry.js:20657:19)\r\n21:08:09.290 | at pp$5.parseMaybeConditional (node_modules/rollup/dist/es/shared/node-entry.js:20640:19)\r\n21:08:09.290 | at pp$5.parseMaybeAssign (node_modules/rollup/dist/es/shared/node-entry.js:20607:19)\r\n21:08:09.290 | at pp$5.parsePropertyValue (node_modules/rollup/dist/es/shared/node-entry.js:21301:87)\r\n21:08:09.290 | at pp$5.parseProperty (node_modules/rollup/dist/es/shared/node-entry.js:21275:8)\r\n21:08:09.290 | at pp$5.parseObj (node_modules/rollup/dist/es/shared/node-entry.js:21230:21)\r\n21:08:09.290 | at pp$5.parseExprAtom (node_modules/rollup/dist/es/shared/node-entry.js:20956:17)\r\n21:08:09.290 | at pp$5.parseExprSubscripts (node_modules/rollup/dist/es/shared/node-entry.js:20764:19)\r\n21:08:09.290 | at pp$5.parseMaybeUnary (node_modules/rollup/dist/es/shared/node-entry.js:20730:17)\r\n21:08:09.290 | at pp$5.parseExprOps (node_modules/rollup/dist/es/shared/node-entry.js:20657:19)\r\n21:08:09.291 | at pp$5.parseMaybeConditional (node_modules/rollup/dist/es/shared/node-entry.js:20640:19)\r\n21:08:09.291 | at pp$5.parseMaybeAssign (node_modules/rollup/dist/es/shared/node-entry.js:20607:19)\r\n21:08:09.291 | at pp$5.parseMaybeAssign (node_modules/rollup/dist/es/shared/node-entry.js:20625:23)\r\n21:08:09.291 | at pp$5.parseExpression (node_modules/rollup/dist/es/shared/node-entry.js:20570:19)\r\n21:08:09.291 | at pp$8.parseStatement (node_modules/rollup/dist/es/shared/node-entry.js:19014:45)\r\n21:08:09.291 | at pp$8.parseTopLevel (node_modules/rollup/dist/es/shared/node-entry.js:18881:21)\r\n21:08:09.291 | at Parser.parse (node_modules/rollup/dist/es/shared/node-entry.js:18653:15)\r\n21:08:09.291 | at Function.parse (node_modules/rollup/dist/es/shared/node-entry.js:18703:35)\r\n21:08:09.292 | at Graph.contextParse (node_modules/rollup/dist/es/shared/node-entry.js:25749:38)\r\n21:08:09.292 | at tryParse (node_modules/@rollup/plugin-commonjs/dist/es/index.js:17:12)\r\n21:08:09.292 | at analyzeTopLevelStatements (node_modules/@rollup/plugin-commonjs/dist/es/index.js:36:15)\r\n21:08:09.292 | at Object.transformAndCheckExports (node_modules/@rollup/plugin-commonjs/dist/es/index.js:2066:68)\r\n21:08:09.292 | at Object.transform (node_modules/@rollup/plugin-commonjs/dist/es/index.js:2257:41)\r\n21:08:09.292 | at node_modules/rollup/dist/es/shared/node-entry.js:25539:40\r\n21:08:09.292 | \r\n21:08:09.292 | [error] 'with' in strict mode (10:4) in /opt/buildhome/repo/node_modules/domino/lib/sloppy.js\r\n21:08:09.483 | Failed: build command exited with code: 1\r\n21:08:10.724 | Failed: error occurred while running build command\r\n\r\n\r\n### Additional context\r\n\r\n[Package.json](https://goonlinetools.com/snapshot/code/#8z3yu2l7eu5uj525ijo98)\r\n[Nuxt.config.js](https://goonlinetools.com/snapshot/code/#gs4gfr7n1t6hwwttr8qcau)\r\n\r\n### Logs\r\n\r\n_No response_",[3087,3088,3089],{"name":3033,"color":3034},{"name":3020,"color":3021},{"name":3052,"color":3053},23299,"Build Fail - Cloudflare Pages","2023-11-02T07:29:59Z","https://github.com/nuxt/nuxt/issues/23299",0.61756814,{"description":3096,"labels":3097,"number":3100,"owner":3023,"repository":3023,"state":3024,"title":3101,"updated_at":3102,"url":3103,"score":3104},"### Environment\n\nPrevious version:\r\n- Operating System: Darwin\r\n- Node Version: v21.7.1\r\n- Nuxt Version: 2.17.3\r\n- CLI Version: 3.12.0\r\n- Nitro Version: -\r\n- Package Manager: yarn@1.22.22\r\n- Builder: webpack\r\n- User Config: target, ssr, generate, head, css, plugins, components, buildModules, modules, sitemap, robots, sentry, axios, build, router, publicRuntimeConfig, graphql, hooks, storybook, ignore\r\n- Runtime Modules: @nuxtjs/axios@5.13.6, nuxt-graphql-request@6.0.3, cookie-universal-nuxt@2.2.2, @nuxtjs/sentry@5.1.7, @nuxtjs/sitemap@2.4.0, @nuxtjs/robots@2.5.0, nuxt-clipboard@0.0.7\r\n- Build Modules: @nuxtjs/eslint-module@3.1.0, @nuxtjs/stylelint-module@5.2.0, @nuxt/postcss8@1.1.3, @nuxtjs/svg@0.1.12, @/modules/generator\r\n\r\nCurrent version:\r\n- Operating System: `Darwin`\r\n- Node Version: `v20.11.1`\r\n- Nuxt Version: `3.12.4`\r\n- CLI Version: `3.12.0`\r\n- Nitro Version: `2.9.7`\r\n- Package Manager: `yarn@1.22.22`\r\n- Builder: `-`\r\n- User Config: `compatibilityDate`, `nitro`, `app`, `typescript`, `devServerHandlers`, `vite`, `runtimeConfig`, `sourcemap`, `modules`, `build`, `css`, `tailwindcss`, `ignore`, `graphql`, `experimental`\r\n- Runtime Modules: `@nuxtjs/tailwindcss@6.12.1`, `nuxt-graphql-request@8.1.0`, `@nuxtjs/sitemap@5.3.5`, `@nuxtjs/robots@4.0.1`, `@nuxt/test-utils/module@3.13.1`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nN/A\n\n### Describe the bug\n\nHi guys,\r\n\r\n# Error using `externalVue: false`\r\nAfter upgrading from Nuxt 2.17.3 to Nuxt 3.12.3 I am getting an 500 error \"This page is temporarily unavailable.\" after running `nuxi build && nuxi preview` with the flag of `externalVue: false` on my `nuxt.config.js`.\r\n\r\nThe error I am getting in the console is: \r\n\r\n```\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'exports')\r\n at ./server/chunks/routes/renderer.mjs:839:24 \r\n at ModuleJob.run (node:internal/modules/esm/module_job:218:25) \r\n at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) \r\n at async Object.handler (./server/chunks/runtime.mjs:2878:19) \r\n at async Server.toNodeHandle (./server/chunks/runtime.mjs:3148:7)\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'exports')\r\n at ./server/chunks/routes/renderer.mjs:839:24 \r\n at ModuleJob.run (node:internal/modules/esm/module_job:218:25) \r\n at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) \r\n at async Object.handler (./server/chunks/runtime.mjs:2878:19) \r\n at async Server.toNodeHandle (./server/chunks/runtime.mjs:3148:7)\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'exports')\r\n at ./server/chunks/routes/renderer.mjs:839:24 \r\n at ModuleJob.run (node:internal/modules/esm/module_job:218:25) \r\n at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) \r\n at async Object.handler (./server/chunks/runtime.mjs:2878:19) \r\n at async Server.toNodeHandle (./server/chunks/runtime.mjs:3148:7)\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'exports')\r\n at ./server/chunks/routes/renderer.mjs:839:24 \r\n at ModuleJob.run (node:internal/modules/esm/module_job:218:25) \r\n at async ModuleLoader.import (node:internal/modules/esm/loader:329:24) \r\n at async Object.handler (./server/chunks/runtime.mjs:2878:19) \r\n at async Server.toNodeHandle (./server/chunks/runtime.mjs:3148:7)\r\n ```\r\n \r\nIf I take a look at `renderer.mjs:839:24` I can see this line of code:\r\n ```var vueExports$1 = vue.exports;```\r\n\r\nHowever, I see that `vue` is declared in line `1692` using this code:\r\n```var vue = {exports: {}};```\r\n\r\nCan you give me a hint on how can I fix it?\r\n\r\n# Error using `externalVue: true`\r\n\r\nAfter enabling that flag, I get a total different error: \r\n\r\n```\r\n[nuxt] [request error] [unhandled] [500] Cannot find module '.output/server/node_modules/vue/server-renderer/index.mjs' imported from .output/server/chunks/routes/renderer.mjs\r\n at finalizeResolution (node:internal/modules/esm/resolve:264:11) \r\n at moduleResolve (node:internal/modules/esm/resolve:917:10) \r\n at defaultResolve (node:internal/modules/esm/resolve:1130:11) \r\n at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12) \r\n at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25) \r\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38) \r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/module_job:85:39) \r\n at link (node:internal/modules/esm/module_job:84:36)\r\n[nuxt] [request error] [unhandled] [500] Cannot find module '.output/server/node_modules/vue/server-renderer/index.mjs' imported from .output/server/chunks/routes/renderer.mjs\r\n at finalizeResolution (node:internal/modules/esm/resolve:264:11) \r\n at moduleResolve (node:internal/modules/esm/resolve:917:10) \r\n at defaultResolve (node:internal/modules/esm/resolve:1130:11) \r\n at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12) \r\n at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25) \r\n at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38) \r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/module_job:85:39) \r\n at link (node:internal/modules/esm/module_job:84:36)\r\n```\r\n\r\nFor this error, I tried everything on this [thread](https://github.com/nuxt/nuxt/issues/14820) without any luck. Is there anything I am missing?\r\n\r\nI'm using `Vue 3.4.27`\r\n\r\n**Note:** Everything is working as expected on `dev` mode. The platform I am using to deploy my project is Cloudflare, in which I am getting a different error but I hope that's fixed once the `nuxi build && nuxi preview` works 🙏 \r\n\r\nI would appreciate any hint on this 🙏 \n\n### Additional context\n\nI'm using Vue 3.4.27\r\n\r\nNuxt config:\r\n\r\n```\r\ninterface CustomNuxtConfig extends NuxtConfig {\r\n eslint?: any\r\n}\r\n\r\nconst config: CustomNuxtConfig = {\r\n compatibilityDate: '2024-04-03',\r\n nitro: {\r\n prerender: {\r\n autoSubfolderIndex: false,\r\n },\r\n },\r\n typescript: {\r\n strict: false,\r\n },\r\n devServerHandlers: [],\r\n vite: {\r\n plugins: [svgLoader({ svgo: false })],\r\n define: {\r\n __DEV__: !IS_PRODUCTION,\r\n global: 'window',\r\n },\r\n },\r\n runtimeConfig: {\r\n public: {},\r\n },\r\n sourcemap: {\r\n server: process.env.CONTEXT === 'production',\r\n client: process.env.CONTEXT === 'production',\r\n },\r\n modules: [\r\n '@nuxtjs/tailwindcss',\r\n // '@nuxtjs/eslint-module',\r\n // '@nuxtjs/stylelint-module',\r\n 'nuxt-graphql-request',\r\n '@nuxtjs/sitemap',\r\n '@nuxtjs/robots',\r\n '@nuxt/test-utils/module',\r\n ],\r\n build: {\r\n transpile: [\r\n 'nuxt-graphql-request',\r\n 'chartjs-adapter-date-fns',\r\n 'modern-screenshot',\r\n ],\r\n },\r\n css: ['~/assets/main.scss'],\r\n tailwindcss: {\r\n exposeConfig: true,\r\n viewer: false,\r\n configPath: './tailwind.config.ts',\r\n },\r\n ignore: ['playwright/**/*.spec.*', 'playwright-report/*', '.idea/*'],\r\n graphql: {\r\n clients: {\r\n default: {\r\n endpoint: PUBLIC_GRAPHQL_ENDPOINT,\r\n options: {\r\n requireCredentials: false,\r\n } as any,\r\n },\r\n authenticatedClient: {\r\n endpoint: GRAPHQL_ENDPOINT,\r\n options: {\r\n requireCredentials: true,\r\n } as any,\r\n },\r\n },\r\n },\r\n experimental: {\r\n defaults: {\r\n nuxtLink: {\r\n trailingSlash: 'append',\r\n activeClass: 'nuxt-link-active',\r\n exactActiveClass: 'nuxt-link-exact-active',\r\n },\r\n },\r\n },\r\n}\r\n\r\nexport default defineNuxtConfig(config)\r\n```\n\n### Logs\n\n_No response_",[3098,3099],{"name":3020,"color":3021},{"name":3052,"color":3053},28228,"Error 500 when building Nuxt 3.12.4 after upgrading from 2.17.3","2024-09-11T16:34:57Z","https://github.com/nuxt/nuxt/issues/28228",0.6227565,{"description":3106,"labels":3107,"number":3111,"owner":3023,"repository":3023,"state":3024,"title":3112,"updated_at":3113,"url":3114,"score":3115},"### 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_",[3108,3109,3110],{"name":3033,"color":3034},{"name":3020,"color":3021},{"name":3036,"color":3037},23796,"Nuxt 3.8 can no longer deploy to Cloudflare Pages","2023-10-28T13:56:34Z","https://github.com/nuxt/nuxt/issues/23796",0.6267883,{"description":3117,"labels":3118,"number":3121,"owner":3023,"repository":3023,"state":3024,"title":3122,"updated_at":3123,"url":3124,"score":3125},"### Environment\r\n\r\n```\r\nNuxi 3.0.0 15:21:49\r\n 15:21:49\r\nRootDir: /private/tmp/bug-repro 15:21:49\r\nNuxt project info: (copied to clipboard) 15:21:49\r\n\r\n------------------------------\r\n- Operating System: `Darwin`\r\n- Node Version: `v16.14.0`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `yarn@3.2.0`\r\n- Builder: `vite`\r\n- User Config: `app`, `ssr`, `typescript`, `runtimeConfig`, `modules`, `nitro`, `postcss`\r\n- Runtime Modules: `@sidebase/nuxt-auth@0.3.4`\r\n- Build Modules: `-`\r\n------------------------------\r\n```\r\n\r\n### Reproduction\r\n\r\n```\r\nnpx nuxi init bug-reproduction\r\nyarn add --dev @sidebase/nuxt-auth\r\n```\r\n\r\nAnd `nuxt.config.ts` :\r\n```ts\r\nexport default defineNuxtConfig({\r\n ssr: true,\r\n typescript: {\r\n strict: false\r\n },\r\n modules: [\r\n '@sidebase/nuxt-auth',\r\n ],\r\n nitro: {\r\n preset: 'cloudflare-pages'\r\n },\r\n})\r\n```\r\n\r\nThen `yarn build`.\r\n\r\n### Describe the bug\r\n\r\nUnable to build the project.\r\nThe only Nuxt3 auth library is failing to work properly.\r\n\r\n### Additional context\r\n\r\nI've also raised an issue here https://github.com/sidebase/nuxt-auth/issues/170.\r\nNot knowing if it's more on your scope or on Sidebase's scope.\r\n\r\n### Logs\r\n\r\n```shell-script\r\n ERROR nitro 15:23:50\r\n\r\n1: import * as http from 'http';\r\n2: import * as https from 'https';\r\n3: import { once } from 'events';\r\n ^\r\n4: import { JOSEError, JWKSTimeout } from '../util/errors.js';\r\n5: import { concat, decoder } from '../lib/buffer_utils.js';\r\n\r\n\r\n ERROR 'once' is not exported by node_modules/unenv/runtime/node/events/index.mjs, imported by node_modules/jose/dist/node/esm/runtime/fetch_jwks.js\r\n\r\n at error (node_modules/rollup/dist/es/shared/rollup.js:1858:30)\r\n at Module.error (node_modules/rollup/dist/es/shared/rollup.js:12429:16)\r\n at Module.traceVariable (node_modules/rollup/dist/es/shared/rollup.js:12788:29)\r\n at ModuleScope.findVariable (node_modules/rollup/dist/es/shared/rollup.js:11440:39)\r\n at ReturnValueScope.findVariable (node_modules/rollup/dist/es/shared/rollup.js:6372:38)\r\n at ChildScope.findVariable (node_modules/rollup/dist/es/shared/rollup.js:6372:38)\r\n at Identifier.bind (node_modules/rollup/dist/es/shared/rollup.js:7439:40)\r\n at CallExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:5269:23)\r\n at CallExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:8935:15)\r\n at ArrayExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:5265:73)\r\n at CallExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:5265:73)\r\n at CallExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:8935:15)\r\n at AwaitExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:5269:23)\r\n at VariableDeclarator.bind (node_modules/rollup/dist/es/shared/rollup.js:5269:23)\r\n at VariableDeclaration.bind (node_modules/rollup/dist/es/shared/rollup.js:5265:73)\r\n at BlockStatement.bind (node_modules/rollup/dist/es/shared/rollup.js:5265:73)\r\n at ArrowFunctionExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:5269:23)\r\n at VariableDeclarator.bind (node_modules/rollup/dist/es/shared/rollup.js:5269:23)\r\n at VariableDeclaration.bind (node_modules/rollup/dist/es/shared/rollup.js:5265:73)\r\n at Program.bind (node_modules/rollup/dist/es/shared/rollup.js:5265:73)\r\n at Module.bindReferences (node_modules/rollup/dist/es/shared/rollup.js:12425:18)\r\n at Graph.sortModules (node_modules/rollup/dist/es/shared/rollup.js:23062:20)\r\n at Graph.build (node_modules/rollup/dist/es/shared/rollup.js:22940:14)\r\n at runMicrotasks (\u003Canonymous>)\r\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\r\n at async node_modules/rollup/dist/es/shared/rollup.js:23730:13\r\n at async catchUnfinishedHookActions (node_modules/rollup/dist/es/shared/rollup.js:23126:20)\r\n at async rollupInternal (node_modules/rollup/dist/es/shared/rollup.js:23727:5)\r\n at async _build (node_modules/nitropack/dist/shared/nitro.c8278d90.mjs:1404:18)\r\n at async node_modules/nuxt/dist/index.mjs:1677:9\r\n at async build (node_modules/nuxt/dist/index.mjs:2236:5)\r\n at async Object.invoke (node_modules/nuxi/dist/chunks/build.mjs:56:5)\r\n at async _main (node_modules/nuxi/dist/cli.mjs:50:20)\r\n\r\n[1] 44663 exit 1 yarn build\r\n```\r\n```\r\n",[3119,3120],{"name":3033,"color":3034},{"name":3020,"color":3021},12336,"Build error with \"cloudflare-pages\" preset and \"@sidebase/nuxt-auth\" module","2023-01-22T11:31:27Z","https://github.com/nuxt/nuxt/issues/12336",0.6321104,{"description":3127,"labels":3128,"number":3132,"owner":3023,"repository":3023,"state":3024,"title":3133,"updated_at":3134,"url":3135,"score":3136},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v20.2.0`\r\n- Nuxt Version: `3.5.3`\r\n- Nitro Version: `2.4.1`\r\n- Package Manager: `pnpm@8.6.2`\r\n- Builder: `vite`\r\n- User Config: `devtools`, `nitro`, `alias`, `modules`, `runtimeConfig`\r\n- Runtime Modules: `@nuxtjs/tailwindcss@6.7.2`\r\n- Build Modules: `-`\r\n\r\n\r\n### Reproduction\r\n\r\nEncountered it by trying the cloudflare_pages preset with the nuxt-openai vercel-labs/ai example : \r\n\r\nhttps://github.com/vercel-labs/ai/tree/main/examples/nuxt-openai\r\n\r\n\r\nFull Error :\r\n\r\n```\r\nℹ Building Nitro Server (preset: cloudflare-pages) nitro 1:01:56 AM\r\n\r\n[nitro 1:01:58 AM] ERROR RollupError: \"types\" is not exported by \"../../node_modules/.pnpm/unenv@1.5.1/node_modules/unenv/runtime/node/util/index.mjs\", imported by \".nuxt/dist/server/server.mjs\".\r\n\r\n\r\n24: import Stream, { pipeline as pipeline$1, PassThrough } from \"node:stream\";\r\n25: import { Buffer as Buffer$1 } from \"node:buffer\";\r\n26: import { promisify, deprecate, types } from \"node:util\";\r\n ^\r\n27: import { format } from \"node:url\";\r\n28: import { isIP } from \"node:net\";\r\n\r\n\r\n[1:01:58 AM] ERROR \"types\" is not exported by \"../../node_modules/.pnpm/unenv@1.5.1/node_modules/unenv/runtime/node/util/index.mjs\", imported by \".nuxt/dist/server/server.mjs\".\r\n```\r\n\r\n### Describe the bug\r\n\r\nWhen building some projects with the cloudflare presets, there's some build errors that can be worked around by explicitly installing `unenv` and aliasing some node deps to the cjs version of unenv.\r\n\r\n```ts\r\nimport path from 'node:path'\r\n\r\n// https://nuxt.com/docs/api/configuration/nuxt-config\r\nexport default defineNuxtConfig({\r\n devtools: { enabled: true },\r\n nitro: {\r\n preset: 'cloudflare-pages'\r\n },\r\n alias: {\r\n 'node:util': path.resolve(\r\n __dirname,\r\n 'node_modules/unenv/runtime/node/util/index.cjs'\r\n ),\r\n 'node:net': path.resolve(\r\n __dirname,\r\n 'node_modules/unenv/runtime/node/net/index.cjs'\r\n )\r\n },\r\n modules: ['@nuxtjs/tailwindcss'],\r\n runtimeConfig: {\r\n openaiApiKey: ''\r\n }\r\n})\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nThis might be a pnpm issue due to the fact that this setup doesn't use `shamefully-hoist`. In this case this should be fixed with full pnpm support.\r\n\r\n### Logs\r\n\r\n_No response_",[3129,3130,3131],{"name":3033,"color":3034},{"name":3020,"color":3021},{"name":3039,"color":3040},21619,"[Nitro/Unenv] cloudflare build has issues with unenv","2023-08-17T08:00:37Z","https://github.com/nuxt/nuxt/issues/21619",0.6337025,["Reactive",3138],{},["Set"],["ShallowReactive",3141],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fFJxsfRDIL6YBv_KhYpZfhy9UL0u9pMw-PhgtDHAXRzw":-1},"/nuxt/nuxt/27605"]