\r\n\r\n \u003Cdiv\r\n class=\"mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-x-8 gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-3\">\r\n \u003CNewsArticleCard :post=\"article\" v-for=\"article in data\" :key=\"article.id\" />\r\n \u003C/div>\r\n \u003C/div>\r\n\r\n\r\n \u003C/div>\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cscript setup>\r\nconst { data, pending, error, refresh } = await useAsyncData('blog', () => $fetch('/api/blog'))\r\n\r\nif (error.value) {\r\n throw createError({\r\n statusCode: 404,\r\n statusMessage: 'Blog Posts Not Found',\r\n fatal: true,\r\n })\r\n}\r\n\u003C/script>\r\n\r\n\r\n```\r\n\r\nThere are also similar issues like https://github.com/nuxt/nuxt/issues/24045 or https://github.com/nuxt/nuxt/issues/13656 where this error occured.\r\n\r\n### Logs\r\n\r\n```shell-script\r\nTypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.\r\n at insert (Dv3nVqiQ.js:18:178)\r\n at ft (Dv3nVqiQ.js:14:41813)\r\n at ft (Dv3nVqiQ.js:14:41556)\r\n at ft (Dv3nVqiQ.js:14:41400)\r\n at ft (Dv3nVqiQ.js:14:41400)\r\n at ft (Dv3nVqiQ.js:14:41400)\r\n at Object.resolve (Dv3nVqiQ.js:14:7745)\r\n at pr (Dv3nVqiQ.js:14:42980)\r\n at He (Dv3nVqiQ.js:14:42086)\r\n```\r\n",[2055,2056,2057],{"name":1987,"color":1988},{"name":2010,"color":2011},{"name":2013,"color":2014},27060,"`Failed to execute 'insertBefore' on 'Node':` with useAsyncData and Pre-Rendering","2024-05-26T23:31:07Z","https://github.com/nuxt/nuxt/issues/27060",0.6422958,{"description":2064,"labels":2065,"number":2068,"owner":1999,"repository":1999,"state":2000,"title":2069,"updated_at":2070,"url":2071,"score":2072},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v18.18.0\r\n- Nuxt Version: 3.8.2\r\n- CLI Version: 3.10.0\r\n- Nitro Version: 2.8.0\r\n- Package Manager: npm@9.4.2\r\n- Builder: -\r\n- User Config: devtools, app\r\n- Runtime Modules: -\r\n- Build Modules: -\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-vkjeze?file=nuxt.config.ts\n\n### Describe the bug\n\nRunning the `generate` command fails when using a relative baseURI.\r\n\r\n\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2066,2067],{"name":2010,"color":2011},{"name":1990,"color":1991},24390,"Prerendering via `nuxt generate` broken when using relative baseURL","2024-09-05T08:28:54Z","https://github.com/nuxt/nuxt/issues/24390",0.64644104,{"description":2074,"labels":2075,"number":2079,"owner":1999,"repository":1999,"state":2000,"title":2080,"updated_at":2081,"url":2082,"score":2083},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.9.1`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `yarn@1.22.19`\r\n- Builder: `vite`\r\n- User Config: `runtimeConfig`, `nitro`, `modules`, `googleFonts`, `vite`, `extends`, `generate`\r\n- Runtime Modules: `@nuxtjs/tailwindcss@6.1.3`, `@nuxtjs/google-fonts@3.0.0-1`, `@nuxt/image-edge@1.0.0-27840416.dc1ed65`, `@formkit/nuxt@1.0.0-beta.12`\r\n- Build Modules: `-`\r\n\n\n### Reproduction\n\nWhen using nuxi generate, it generates a blank 404.html file.\n\n### Describe the bug\n\nIn local development error.vue works as expected. However, once pushed to production and nuxi generate is used, the custom error page doesn't work.\r\n\r\nerror.vue is located in my sites directory along with app.vue etc.\r\n\r\nSite is hosted on Vercel.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2076,2077,2078],{"name":1987,"color":1988},{"name":2010,"color":2011},{"name":2013,"color":2014},12353,"nitro output support for 404 handling with prerendered assets","2023-01-19T16:13:51Z","https://github.com/nuxt/nuxt/issues/12353",0.64781165,{"description":2085,"labels":2086,"number":2089,"owner":1999,"repository":1999,"state":2000,"title":2090,"updated_at":2091,"url":2092,"score":2093},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v19.4.0 // tried also 19.1, 19.9, 18.4\r\n- Nuxt Version: 3.4.3 // tried also 3.5.1\r\n- Nitro Version: 2.4.1 //tried also 2.3.3\r\n- Package Manager: yarn@2.4.3 //tried also NPM and yarn@1\r\n- Builder: vite\r\n- User Config: preset, server, loadingIndicator, css, app, modules, i18n, vite, nitro, experimental\r\n- Runtime Modules: @nuxtjs/i18n@8.0.0-beta.12\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nI an trying to create a repro but could not undestand what I need to do for it.\r\n\r\nI did\n\n### Describe the bug\n\nnpx nuxt build\r\n\r\n````\r\n//log from linux machine\r\n✔ Generated public .output/public nitro 9:42:02 PM\r\nℹ Initializing prerenderer nitro 9:42:03 PM\r\n\r\n ERROR Error: The service is no longer running: write EPIPE nitro 9:42:04 PM\r\n\r\n\r\n// same code, build on Windows\r\nwhy the proxy module need for prerender? how to remove it from this step ?\r\n\r\n\r\ni Initializing prerenderer nitro 21:43:01\r\n[21:43:21] i [HPM] Proxy created: ... \r\ni Prerendering 1 routes nitro 21:43:21\r\n\r\n[21:43:21] ERROR (node:29456) Warning: To load an ES module, set \"type\": \"module\" in the package.json or use the .mjs extension.\r\n(Use node --trace-warnings ... to show where the warning was created)\r\n\r\n\r\n[21:43:21] ERROR [nuxt] [request error] [unhandled] [500] Cannot use import statement outside a module\r\n at internalCompileFunction (node:internal/vm:73:18)\r\n at wrapSafe (node:internal/modules/cjs/loader:1195:20)\r\n at Module._compile (node:internal/modules/cjs/loader:1239:27)\r\n at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)\r\n at Module.load (node:internal/modules/cjs/loader:1133:32)\r\n at Module._load (node:internal/modules/cjs/loader:972:12)\r\n at ModuleWrap.\u003Canonymous> (node:internal/modules/esm/translators:165:29)\r\n at ModuleJob.run (node:internal/modules/esm/module_job:193:25)\r\n\r\n ├─ /__i18n__/prerender/365c1add.js (157ms) (Error: [500] ) nitro 21:43:21\r\ni Building Nitro Server (preset: node-server) nitro 21:43:21\r\n\r\n ERROR RangeError: Maximum call stack size exceeded nitro 21:45:01\r\n\r\n\r\nundefined\r\n\r\n\r\n ERROR Maximum call stack size exceeded 21:45:01\r\n\r\n at applyProductionCondition (/E:/inetpub/inn/nuxt3b/node_modules/nitropack/dist/shared/nitro.a3c42e5a.mjs:713:3)\r\n at applyProductionCondition (/E:/inetpub/inn/nuxt3b/node_modules/nitropack/dist/shared/nitro.a3c42e5a.mjs:724:5)\r\n```\r\n\r\n\n\n### Additional context\n\nExiting (working) install .\r\nTested on windows and on linux.\r\n\r\nThe old logs from the working build did not do the `prerender` step. the configuration did not use the prerender as I am using SPA/SSR depending on the needs.\r\n\r\n\r\nWhat I was tried before opening the bug:\r\nyarn, npm redownload again and again\r\nremove modules and build\r\ntried to build with nuxt/nuxi 3.4.1, 3.5.1, 3.4.2\r\ntried diffrent node / OS versions.\r\ntried to connect debugger to see where is the crash (code)\r\ntried to add a logging code to `applyProductionCondition`\r\n\r\n\r\n\r\n\n\n### Logs\n\n```shell-script\nThanks for all !! we are using nuxt and happy with it.\n```\n",[2087,2088],{"name":1987,"color":1988},{"name":1993,"color":1994},21051,"prerendering crashes with `@nuxtjs/i18n`","2023-07-12T14:54:46Z","https://github.com/nuxt/nuxt/issues/21051",0.6491922,{"description":2095,"labels":2096,"number":2099,"owner":1999,"repository":1999,"state":2000,"title":2100,"updated_at":2101,"url":2102,"score":2103},"### Environment\r\n\r\n```sh\r\nNuxt project info:\r\n\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v16.17.0\r\n- Nuxt Version: 3.8.1\r\n- CLI Version: 3.9.1\r\n- Nitro Version: 2.7.2\r\n- Package Manager: yarn@1.22.19\r\n- Builder: -\r\n- User Config: devtools, nitro\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n```\r\n\r\n\r\n### Reproduction\r\n\r\n1. Configuring `nuxt.config`\r\n```ts\r\nexport default defineNuxtConfig({\r\n nitro: { preset: 'node' }\r\n})\r\n```\r\n\r\n2. Creating an `index.mjs` server\r\n```ts\r\nimport { createServer } from 'node:http'\r\nimport { handler } from './.output/server/index.mjs'\r\n\r\nconst server = createServer(handler)\r\nserver.listen(3000)\r\n```\r\n\r\n3. Compiling and starting the server\r\n```sh\r\nyarn build && node index.mjs\r\n```\r\n\r\n[Reproduction Here](https://codesandbox.io/p/sandbox/practical-bird-2v7hy5?file=%2F.codesandbox%2Ftasks.json%3A34%2C35&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clp0o4t0z000c3b6k6r236dt0%2522%252C%2522sizes%2522%253A%255B57.90419162%252C42.09580838%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clp0o4t0z00033b6km9ezvzz5%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clp0o4t0z00093b6kb1i58g4f%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clp0o4t0z000b3b6k6oc6syxf%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clp0o4t0z00033b6km9ezvzz5%2522%253A%257B%2522id%2522%253A%2522clp0o4t0z00033b6km9ezvzz5%2522%252C%2522activeTabId%2522%253A%2522clp0or5y101cr3b6jv5plb4f8%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252F.codesandbox%252Ftasks.json%2522%252C%2522id%2522%253A%2522clp0or5y101cr3b6jv5plb4f8%2522%252C%2522mode%2522%253A%2522temporary%2522%257D%255D%257D%252C%2522clp0o4t0z000b3b6k6oc6syxf%2522%253A%257B%2522id%2522%253A%2522clp0o4t0z000b3b6k6oc6syxf%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522yarn%2520build%2520%2526%2526%2520node%2520index.mjs%2522%252C%2522port%2522%253A3000%252C%2522id%2522%253A%2522clp0oo9fo00vr3b6j2s9a6of3%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clp0oo9fo00vr3b6j2s9a6of3%2522%257D%252C%2522clp0o4t0z00093b6kb1i58g4f%2522%253A%257B%2522id%2522%253A%2522clp0o4t0z00093b6kb1i58g4f%2522%252C%2522activeTabId%2522%253A%2522clp0onuml00q53b6jmd5jytwd%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522yarn%2520build%2520%2526%2526%2520node%2520index.mjs%2522%252C%2522id%2522%253A%2522clp0onuml00q53b6jmd5jytwd%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%255D%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D)\r\n\r\n### Describe the bug\r\n\r\nExpected Result:\r\nThe server should start normally and execute the Vue program in the client side without issues.\r\n\r\n\r\nActual Result:\r\nThe server starts up correctly, but the Vue program in the client side fails to execute.\r\n\r\n\r\n\r\n### Additional context\r\n\r\nNuxt and Nitro are fantastic, and I really appreciate this community and the team's effort. However, I expected that following the Nuxt and Nitro documentation for setup would result in a successful execution. I would appreciate some assistance in troubleshooting this issue. Thank you.\r\n\r\nhttps://nitro.unjs.io/deploy/runtimes/node#handler-advanced\r\n\r\n\r\n### Logs\r\n\r\n```shell-script\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/index.ae8c31f5.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/entry.97d8de00.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-404.4a434e74.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/error-500.4b457395.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n[Vue Router warn]: No match found for location with path \"/_nuxt/vue.f36acd1f.5681e6db.js\"\r\n```",[2097,2098],{"name":1987,"color":1988},{"name":2010,"color":2011},24324,"When using the nitro preset as 'node', the example in the documentation does not execute correctly.","2023-11-17T05:29:10Z","https://github.com/nuxt/nuxt/issues/24324",0.6495364,["Reactive",2105],{},["Set"],["ShallowReactive",2108],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"C5Ts8SNo6NOSRjl8XBq6WdDH0Ql_nUxLAWqcGH0JJMw":-1},"/nuxt/nuxt/21828"]