\nFull log out put from browser console below\n\n### Logs\n\n```shell-script\nThe console log from the browser from starting the dev server\n\nclient:745 WebSocket connection to 'ws://localhost:3000/_nuxt/?token=hbttnGO2POq9' failed: \ncreateConnection @ client:745\nconnect @ client:412\nconnect @ client:751\nconnect @ client:290\nconnect @ client:374\n(anonymous) @ client:823\nclient:755 WebSocket connection to 'ws://localhost:5173/_nuxt/?token=hbttnGO2POq9' failed: \ncreateConnection @ client:755\nconnect @ client:412\nconnect @ client:759\nclient:765 [vite] failed to connect to websocket.\nyour current setup:\n (browser) localhost:3000/_nuxt/ \u003C--[HTTP]--> localhost:5173/_nuxt/ (server)\n (browser) localhost:3000/_nuxt/ \u003C--[WebSocket (failing)]--> localhost:5173/_nuxt/ (server)\nCheck out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr .\nconnect @ client:765\nawait in connect\nconnect @ client:290\nconnect @ client:374\n(anonymous) @ client:823\nentry.js:1 \n \n \n GET http://localhost:3000/_nuxt/@fs/home/mozeik/muxt/node_modules/vue/dist/vue.runtime.esm-bundler.js?v=1c201e43 net::ERR_ABORTED 504 (Outdated Request)\nlocalhost/:1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/@fs/home/mozeik/muxt/node_modules/nuxt/dist/app/entry.js?v=1c201e43\nentry.js:2 \n \n \n GET http://localhost:3000/_nuxt/@id/virtual:nuxt:%2Fhome%2Fmozeik%2Fmuxt%2F.nuxt%2Ffetch.mjs net::ERR_ABORTED 504 (Outdated Request)\nentry.js:3 \n \n \n GET http://localhost:3000/_nuxt/@id/virtual:nuxt:%2Fhome%2Fmozeik%2Fmuxt%2F.nuxt%2Fglobal-polyfills.mjs net::ERR_ABORTED 504 (Outdated Request)\nentry.js:4 \n \n \n GET http://localhost:3000/_nuxt/@fs/home/mozeik/muxt/node_modules/nuxt/dist/app/nuxt.js?v=1c201e43 net::ERR_ABORTED 504 (Outdated Request)\nentry.js:5 \n \n \n GET http://localhost:3000/_nuxt/@fs/home/mozeik/muxt/node_modules/nuxt/dist/app/composables/error.js?v=1c201e43 net::ERR_ABORTED 504 (Outdated Request)\nentry.js:6 \n \n \n GET http://localhost:3000/_nuxt/@id/virtual:nuxt:%2Fhome%2Fmozeik%2Fmuxt%2F.nuxt%2Fcss.mjs net::ERR_ABORTED 504 (Outdated Request)\nentry.js:7 \n \n \n GET http://localhost:3000/_nuxt/@id/virtual:nuxt:%2Fhome%2Fmozeik%2Fmuxt%2F.nuxt%2Fplugins.client.mjs net::ERR_ABORTED 503 (Service Unavailable)\nentry.js:8 \n \n \n GET http://localhost:3000/_nuxt/@id/virtual:nuxt:%2Fhome%2Fmozeik%2Fmuxt%2F.nuxt%2Froot-component.mjs net::ERR_ABORTED 503 (Service Unavailable)\nentry.js:9 \n \n \n GET http://localhost:3000/_nuxt/@id/virtual:nuxt:%2Fhome%2Fmozeik%2Fmuxt%2F.nuxt%2Fnuxt.config.mjs net::ERR_ABORTED 503 (Service Unavailable)\nfavicon.ico:1 \n \n \n GET http://localhost:3000/favicon.ico 503 (Service Unavailable)\nlocalhost/:1 The resource http://localhost:3000/_nuxt/builds/meta/dev.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.\nlocalhost/:1 The resource http://localhost:3000/_nuxt/builds/meta/dev.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.\nlocalhost/:1 The resource http://localhost:3000/_nuxt/builds/meta/dev.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.\n```",[3208],{"name":3189,"color":3190},32817,"closed","Nuxt dev server issues","2025-07-31T06:58:57Z","https://github.com/nuxt/nuxt/issues/32817",0.6519825,{"description":3216,"labels":3217,"number":3237,"owner":3178,"repository":3178,"state":3210,"title":3238,"updated_at":3239,"url":3240,"score":3241},"### Environment\r\n\r\n- Operating System: `Linux`\r\n- Node Version: `v18.16.1`\r\n- Nuxt Version: `3.5.2`\r\n- Nitro Version: `2.4.1`\r\n- Package Manager: `npm@9.5.1`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/phanect/repro-nuxt-scss-browserback\r\n\r\nI'm attaching the reproduction as a GitHub repository because this issue was not reproduced on Stackblitz.\r\nIf you disable the cache using DevTools, this issue is not reproduced.\r\n\r\n### Describe the bug\r\n\r\nStep to reproduce:\r\n\r\n1. Clone the repro and run the app:\r\n\r\n```shell\r\n$ git clone https://github.com/phanect/repro-nuxt-scss-browserback.git\r\n$ cd repro-nuxt-scss-browserback\r\n$ npm ci\r\n$ npm run dev\r\n```\r\n2. Open http://localhost:3000/\r\n3. Click the link \"Go to another page\" to move to http://localhost:3000/another/\r\n4. Press the browser back button to go back to http://localhost:3000/\r\n\r\nExpected: The link text \"Go to another page\" is properly shown.\r\nActual: An error message \"500 Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\" is shown.\r\nIn the browser console, some error messages are shown:\r\n\r\n```\r\nindex.vue:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of \"text/css\". Strict MIME type checking is enforced for module scripts per HTML spec.\r\nvue-router.js:201 [Vue Router warn]: uncaught error during route navigation:\r\nvue-router.js:2663 TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\r\nnuxt.js:94 [nuxt] error caught during app initialization TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\r\nvue-router.js:201 [Vue Router warn]: Unexpected error when starting the router: TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\r\nnuxt.js:94 [nuxt] error caught during app initialization TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\r\nchunk-3Q27KRJ5.js:1358 \u003CSuspense> is an experimental feature and its API will likely change.\r\nchunk-3Q27KRJ5.js:97 [Vue warn]: Hydration node mismatch:\r\n- Client vnode: div \r\n- Server rendered DOM: \r\n (start of fragment) \r\n at \u003CErrorDev statusCode=500 statusMessage=\"Internal Server Error\" description=\"Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\" ... > \r\n at \u003CAsyncComponentWrapper statusCode=500 statusMessage=\"Internal Server Error\" description=\"Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\" ... > \r\n at \u003CNuxtErrorPage key=0 error= TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151 > \r\n at \u003CAsyncComponentWrapper key=0 error= TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151 > \r\n at \u003CNuxtRoot>\r\nchunk-3Q27KRJ5.js:97 [Vue warn]: Hydration children mismatch in \u003Cdiv>: server rendered element contains fewer child nodes than client vdom. \r\n at \u003CErrorDev statusCode=500 statusMessage=\"Internal Server Error\" description=\"Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\" ... > \r\n at \u003CAsyncComponentWrapper statusCode=500 statusMessage=\"Internal Server Error\" description=\"Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151\" ... > \r\n at \u003CNuxtErrorPage key=0 error= TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151 > \r\n at \u003CAsyncComponentWrapper key=0 error= TypeError: Failed to fetch dynamically imported module: http://localhost:3000/_nuxt/pages/index.vue?t=1685504873151 > \r\n at \u003CNuxtRoot>\r\n```\r\n\r\n(These error messages are produced on Google Chrome 114.0.5735.90. On Firefox, similar error messages are produced too.)\r\n\r\n### Additional context\r\n\r\nThis is probably caused by CSS.\r\nIf you remove [`\u003Cstyle> block`](https://github.com/phanect/repro-nuxt-scss-browserback/blob/main/pages/index.vue#L7-L11) from index.vue, this error is not raised.\r\n\r\nI have never experienced this issue when I run the production server (`node .output/server/index.mjs`).\r\n\r\nBrowser: Google Chrome 114.0.5735.90 (64bit)\r\nOS: KDE neon (an Ubuntu-based Linux distribution)\r\n\r\n### Logs\r\n\r\n_No response_",[3218,3221,3224,3225,3228,3231,3234],{"name":3219,"color":3220},"good first issue","fbca04",{"name":3222,"color":3223},"workaround available","11376d",{"name":3189,"color":3190},{"name":3226,"color":3227},"dx","C39D69",{"name":3229,"color":3230},"bug","d73a4a",{"name":3232,"color":3233},"vite","3574D1",{"name":3235,"color":3236},"needs reproduction","FBCA04",15723,"`\u003Cstyle>` block causes error on browser back on `nuxt dev`","2025-06-06T09:45:27Z","https://github.com/nuxt/nuxt/issues/15723",0.6530266,{"labels":3243,"number":3248,"owner":3178,"repository":3178,"state":3210,"title":3249,"updated_at":3250,"url":3251,"score":3252},[3244,3245],{"name":3189,"color":3190},{"name":3246,"color":3247},"2.x","d4c5f9",10566,"Error: Path variable [contenthash:7] not implemented in this context: [contenthash:7].js","2024-06-30T09:24:54Z","https://github.com/nuxt/nuxt/issues/10566",0.6628861,{"description":3254,"labels":3255,"number":3260,"owner":3178,"repository":3178,"state":3210,"title":3261,"updated_at":3262,"url":3263,"score":3264},"### Environment\n\n- Operating System: `Windows_NT`\n- Node Version: `v20.11.1`\n- Nuxt Version: `3.15.4`\n- CLI Version: `3.21.1`\n- Nitro Version: `2.10.4`\n- Package Manager: `npm@10.2.4`\n- Builder: `-`\n- User Config: `debug`, `dev`, `app`, `devtools`, `ssr`, `security`, `runtimeConfig`, `build`, `modules`, `imports`, `plugins`, `css`, `alias`, `routeRules`, `server`, `devServer`, `vite`, `compatibilityDate`\n- Runtime Modules: `@pinia/nuxt@0.9.0`, `@nuxtjs/tailwindcss@6.13.1`, `@vueuse/nuxt@12.5.0`, `dayjs-nuxt@2.1.11`, `nuxt-security@2.1.5`\n- Build Modules: `-`\n- Apache Version: `2.4.51`\n\n### Reproduction\n\nhttps://codesandbox.io/p/devbox/compassionate-stonebraker-8n354r\n\n### Describe the bug\n\nAfter updating from Nuxt 3.13.2 to Nuxt 3.15.4, my application started to receive 404 HTTP statuses from Nuxt related requests which are initiated by https://my-project.local/_nuxt/C:/wamp64/www/my-project/frontend/node_modules/nuxt/dist/app/entry.js:\n\n\nI've noticed that after Nuxt version update, it started to URL encode some of virtual file system files URLs, f.e. from: \nhttps://my-project.local/_nuxt/@id/virtual:nuxt:C:/wamp64/www/my-project/frontend/.nuxt/fetch.mjs\nbefore the update, to:\nhttps://my-project.local/_nuxt/@id/virtual:nuxt:C%3A%2Fwamp64%2Fwww%2Fmy-project%2Ffrontend%2F.nuxt%2Ffetch.mjs\nafter the update.\n\nIf I access my application through _https://localhost:3000_, all of Nuxt related requests returns expected 200 HTTP status and there are no issues. But when I run my application through Apache reverse proxy - accessing my application through _https://my-project.local_ which then proxies to _https://localhost:3000_, it can't resolve Nuxt necessary requests (see image above) and responds with 404 status.\n\nI've added `AllowEncodedSlashes NoDecode` to my project Apache vhost configuration and it solves the issue, but it poses security vulnerabilities, so I want to avoid it. Is there any way I could make my Nuxt application avoid URL encoding or is it a requirement from now on?\n\nThank you!\n\n\n\n### Additional context\n\nI wanted to find the causer of the problem, so I did some digging at `/node_modules/nuxt/dist/shared/nuxt.CElo1U5K.mjs`. Found a `VirtualFSPlugin `which I tried to mock. Inside it I removed _encodeURIComponent_ function calls and it stopped to URL encode virtual files URLs and it started to work. I know that this is not a solution - no comments needed about what I did here.\n\n### Logs\n\n```shell-script\n\n```",[3256,3257],{"name":3189,"color":3190},{"name":3258,"color":3259},"upstream","E8A36D",30811,"After Nuxt version update, virtual file system URL encoding causes 404 errors when accessing app through Apache proxy","2025-02-18T10:38:20Z","https://github.com/nuxt/nuxt/issues/30811",0.66311437,{"description":3266,"labels":3267,"number":3273,"owner":3178,"repository":3178,"state":3210,"title":3274,"updated_at":3275,"url":3276,"score":3277},"### Environment\n\nNuxi 3.2.3 \r\n \r\nRootDir: /usr/src/app/packages/app \r\nNuxt project info: \r\n\r\n------------------------------\r\n- Operating System: `Linux`\r\n- Node Version: `v18.14.1`\r\n- Nuxt Version: `3.2.3`\r\n- Nitro Version: `2.2.3`\r\n- Package Manager: `npm@9.5.0`\r\n- Builder: `vite`\r\n- User Config: `build`, `googleFonts`, `experimental`, `i18n`, `modules`, `runtimeConfig`, `typescript`, `vite`, `vue`\r\n- Runtime Modules: `@nuxtjs/google-fonts@3.0.0-1`, `@nuxtjs/i18n@8.0.0-beta.9-27948515.3db6367`, `@pinia/nuxt@0.4.7`\r\n- Build Modules: `-`\r\n------------------------------\r\n\n\n### Reproduction\n\nI don't know how to reproduce this since I don't know the source error of this issue :( At this point we don't know how to debug anything about this issue.\n\n### Describe the bug\n\nWe are facing a lot of this issue : \r\n\r\nSorry for obfuscating some informations, it's about a DNS that is for our client that want to stay anonymous.\r\n\r\n\r\nI don't know where to start in order to fix this issue.\r\nTo give some more informations, when we load the home there is more than 1000 requests done when loading the page : \r\n\r\n\r\n\r\nI'm not sure if there is some limitations arounds requests / seconds on the vite server that serve files?\r\n\r\nIt can happens 10 times / minutes. Sometimes loading the page works, sometimes it does not. \r\n\r\nAny ideas on how to at least debug this ?\n\n### Additional context\n\nWe setup our files outside the components folder, don't know if it has an impact in the bundling? \r\n\r\nWe built the project with the domain driven approach, in which a folder contains all the files containing a part of the projet\r\nExample : all the things related to the payment (store, components, hooks...) are in a specific folder, not splitted in differents folders following nuxt file system\r\n\r\n\r\n\r\nIn the components folder, it's about our design system components that are used inside the domains folders\n\n### Logs\n\n```shell-script\nNo log relevant at this point\n```\n",[3268,3271,3272],{"name":3269,"color":3270},"3.x","29bc7f",{"name":3189,"color":3190},{"name":3235,"color":3236},19393,"Failed to import dynamic modules","2023-07-21T08:31:54Z","https://github.com/nuxt/nuxt/issues/19393",0.6659373,{"description":3279,"labels":3280,"number":3287,"owner":3178,"repository":3178,"state":3210,"title":3288,"updated_at":3289,"url":3290,"score":3291},"### Environment\n\n- Operating System: Linux\n- Node Version: v20.18.1\n- Nuxt Version: 3.16.0\n- CLI Version: 3.22.5\n- Nitro Version: 2.11.6\n- Package Manager: bun@1.2.5\n- Builder: -\n- User Config: compatibilityDate, devtools, telemetry, app, site, runtimeConfig, extends, modules, ui, css, vite, nitro, typescript, alias\n- Runtime Modules: ../../../mymod/src/module\n- Build Modules: -\n\n\n### Reproduction\n\n-\n\n### Describe the bug\n\nI can't run my dev in last update, I have a local module and it seems it can't load some files:\n`[GET] \"http://127.0.0.1:32777/__nuxt_vite_node__/module//home/user/Sites/mymod/node_modules/h3/dist/index.mjs\": 403 Forbidden`\n\nIt seems the bug is the double slash (`//`)\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3281,3282,3284],{"name":3229,"color":3230},{"name":3283,"color":3236},"🔨 p3-minor",{"name":3285,"color":3286},"possible regression","B90A42",31311,"http://127.0.0.1:32777/__nuxt_vite_node__/module...\": 403 Forbidden","2025-03-26T13:41:00Z","https://github.com/nuxt/nuxt/issues/31311",0.666068,{"description":3293,"labels":3294,"number":3297,"owner":3178,"repository":3178,"state":3210,"title":3298,"updated_at":3299,"url":3300,"score":3301},"### 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",[3295,3296],{"name":3269,"color":3270},{"name":3258,"color":3259},21051,"prerendering crashes with `@nuxtjs/i18n`","2023-07-12T14:54:46Z","https://github.com/nuxt/nuxt/issues/21051",0.6668581,["Reactive",3303],{},["Set"],["ShallowReactive",3306],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fOT71tsgabi7TtAGG8vEtHiHrY7fBJAIHGzPLTK-Ge1A":-1},"/nuxt/nuxt/33236"]