` and an empty script), and the error is still there.\n\nFor example:\n\n```\n ERROR [request error] [unhandled] [GET] http://localhost/login 4:45:45 PM\n Cannot read properties of undefined (reading 'split')\n\n at isMetaArrayDupeKey (node_modules/unhead/dist/shared/unhead.Cp0iF6eN.mjs:5:15)\n at node_modules/unhead/dist/shared/unhead.DGkFBTYv.mjs:106:77\n at Array.reduce (\u003Canonymous>)\n at Object.resolveTags (node_modules/unhead/dist/shared/unhead.DGkFBTYv.mjs:93:112)\n at async renderSSRHead (node_modules/unhead/dist/server.mjs:203:48)\n at async Object.render (.nuxt/prerender/chunks/_/renderer.mjs:399:70)\n at async Object.handler (.nuxt/prerender/chunks/nitro/nitro.mjs:1539:22)\n at async Object.handler (node_modules/h3/dist/index.mjs:2003:19)\n at async toNodeHandle (node_modules/h3/dist/index.mjs:2295:7)\n at async b (node_modules/node-mock-http/dist/index.mjs:1:6808)\n```\n\nI added a console.log just before the call to `isMetaArrayDupeKey`\n\n\n\nHere is what it prints:\n\n```\n{ tag: 'script',\n props: { type: 'module', src: '/_nuxt/Daz7sFQz.js', defer: null, crossorigin: true },\n tagPosition: 'head',\n mode: 'server',\n _w: 100,\n _p: 9216,\n _d: undefined }\n```\n\nThe undefined `_d` seems to be the issue but the `console.log` I added is only called when there is an issue. I guess a previous passing or failing condition is not triggering the log.\n\nI'd be glad to provide a reproduction scenario and I'm actually shameful to not be able to debug this further. If you have any hint that can help isolate the issue, I will try that out immediately. \n\nThanks for your help!\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3073,3074,3077],{"name":3021,"color":3022},{"name":3075,"color":3076},"upstream","E8A36D",{"name":3078,"color":3079},"possible regression","B90A42",32178,"`Cannot read properties of undefined (reading 'split')` when prerendering","2025-05-23T00:23:18Z","https://github.com/nuxt/nuxt/issues/32178",0.5925022,{"description":3086,"labels":3087,"number":3093,"owner":3024,"repository":3024,"state":3052,"title":3094,"updated_at":3095,"url":3096,"score":3097},"### Environment\n\n- Operating System: Windows_NT (10)\r\n- Node Version: v20.15.0\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: npm@10.7.0\r\n- Builder: -\r\n- User Config: future, compatibilityDate, devtools, modules, app, ui, colorMode, gtag, site, nitro, device\r\n- Runtime Modules: @formkit/auto-animate/nuxt@0.8.2, @nuxt/content@2.13.2, @nuxt/ui@2.18.4, @nuxtjs/device@3.1.1, @nuxtjs/robots@4.0.2, @nuxtjs/seo@2.0.0-rc.18, @nuxtjs/sitemap@6.0.0-beta.1, nuxt-gtag@2.1.0\r\n- Build Modules: -\n\n### Reproduction\n\nThis seems to be my machine only for some reason, sorry!\n\n### Describe the bug\n\nOn running `nuxt dev --open` I get the following result:\r\n\r\n```\r\n500\r\nCannot read properties of undefined (reading 'replace')\r\n\r\nat normalizeFilenames (http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/plugins/dev-server-logs.js?v=9ffb1c1d:44:32)\r\nat normalizeServerLog (http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/plugins/dev-server-logs.js?v=9ffb1c1d:56:20)\r\nat http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/plugins/dev-server-logs.js?v=9ffb1c1d:28:20\r\nat http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/hookable/dist/index.mjs?v=9ffb1c1d:48:66\r\nat http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/hookable/dist/index.mjs?v=9ffb1c1d:48:56\r\nat async http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/plugins/dev-server-logs.js?v=9ffb1c1d:35:93\r\nat async applyPlugin (http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/nuxt.js?v=9ffb1c1d:137:25)\r\nat async executePlugin (http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/nuxt.js?v=9ffb1c1d:173:9)\r\nat async applyPlugins (http://localhost:3000/_nuxt/@fs/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/nuxt.js?v=9ffb1c1d:187:5)\r\nat async initApp (http://localhost:3000/_nuxt/C:/Users/_____/Documents/Dev/Web/WatchStarWars/node_modules/nuxt/dist/app/entry.js:47:7)\r\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3088,3089,3092],{"name":3021,"color":3022},{"name":3090,"color":3091},"windows","C681FD",{"name":3063,"color":3064},28522,"Cannot read properties of undefined (reading 'replace')","2025-03-24T22:56:32Z","https://github.com/nuxt/nuxt/issues/28522",0.5932568,{"description":3099,"labels":3100,"number":3102,"owner":3024,"repository":3024,"state":3052,"title":3103,"updated_at":3104,"url":3105,"score":3106},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v22.3.0\r\n- Nuxt Version: 4.0.0-28664444.6bb24c14\r\n- CLI Version: 3.13.0-1719571044.bca75ab\r\n- Nitro Version: -\r\n- Package Manager: yarn@1.22.19\r\n- Builder: -\r\n- User Config: devtools, future, compatibilityDate\r\n- Runtime Modules: -\r\n- Build Modules: -\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-u2t8fv?file=nuxt.config.ts\n\n### Describe the bug\n\nSimply create a new nuxt project and follow the instruction to test the V4.\r\n\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n$ nuxt prepare\r\n[11:52:45 PM] ℹ Nuxt now supports pinning the behavior of provider and deployment presets with a compatibility date. We recommend you specify a compatibilityDate in your nuxt.config file.\r\nUsing 2024-04-03 as fallback compatibility date. 11:52:45 PM\r\n\r\n[11:52:45 PM] WARN [nuxt] Expected @nuxt/kit to be at least 4.0.0-28664444.6bb24c14 but got 3.12.2. This might lead to unexpected behavior. Check your package.json or refresh your lockfile.\r\n\r\n\r\n[11:52:45 PM] WARN [nuxt] Expected @nuxt/schema to be at least 4.0.0-28664444.6bb24c14 but got 3.12.2. This might lead to unexpected behavior. Check your package.json or refresh your lockfile.\r\n\r\nℹ Running with compatibility version 4 11:52:46 PM\r\n\r\n ERROR Cannot read properties of undefined (reading 'bind') 11:52:46 PM\r\n\r\n at loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:2749:56)\r\n at async Object.run (node_modules/nuxi/dist/chunks/prepare.mjs:76:18)\r\n at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi-nightly.618a108a.mjs:1680:16)\r\n at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi-nightly.618a108a.mjs:1671:11)\r\n at async runMain$1 (node_modules/nuxi/dist/shared/nuxi-nightly.618a108a.mjs:1809:7) \r\n\r\n\r\n\r\n ERROR Cannot read properties of undefined (reading 'bind') 11:52:46 PM\r\n\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n```\n",[3101],{"name":3021,"color":3022},27956,"V4 - Cannot read properties of undefined (reading 'bind') - @nuxt/kit","2024-07-01T22:00:37Z","https://github.com/nuxt/nuxt/issues/27956",0.5937856,{"description":3108,"labels":3109,"number":3113,"owner":3024,"repository":3024,"state":3052,"title":3114,"updated_at":3115,"url":3116,"score":3117},"` ERROR Nuxt Build Error: [vite:vue] Cannot read properties of undefined (reading 'Symbol(ProxyTarget)') nuxi 7:31:17\nfile: /home/foticos/var/www/wpx/node_modules/nuxt/dist/app/components/nuxt-root.vue\n\n at Object.apply (/home/foticos/var/www/wpx/node_modules/on-change/index.js:210:35)\n at nuxt.options.vue.compilerOptions.isCustomElement (/home/foticos/var/www/wpx/node_modules/nuxt-swiper/dist/module.mjs:25:111)\n at isComponent (/home/foticos/var/www/wpx/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2747:22)\n at onCloseTag (/home/foticos/var/www/wpx/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2673:16)\n at Object.onclosetag (/home/foticos/var/www/wpx/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2308:13)\n at Tokenizer.stateInClosingTagName (/home/foticos/var/www/wpx/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:785:16)\n at Tokenizer.stateInRCDATA (/home/foticos/var/www/wpx/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:628:14)\n at Tokenizer.parse (/home/foticos/var/www/wpx/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:1091:16)\n at Object.baseParse (/home/foticos/var/www/wpx/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js:2947:13)\n at Object.parse (/home/foticos/var/www/wpx/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js:662:23)`\n\nWhen i use nuxt 3.16.1 with debug:true in nuxt.config.ts and npx nuxi build crashes.\nIf i remove debug:true works",[3110,3111,3112],{"name":3021,"color":3022},{"name":3063,"color":3064},{"name":3078,"color":3079},31553,"Cannot read properties of undefined (reading 'Symbol(ProxyTarget)')","2025-04-18T10:24:34Z","https://github.com/nuxt/nuxt/issues/31553",0.5958117,{"description":3119,"labels":3120,"number":3123,"owner":3024,"repository":3024,"state":3052,"title":3124,"updated_at":3125,"url":3126,"score":3127},"### Environment\n\nSystem:\r\n OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)\r\n CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor\r\n Memory: 20.00 GB / 23.44 GB\r\n Container: Yes\r\n Shell: 5.8.1 - /usr/bin/zsh\r\n Binaries:\r\n Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node\r\n Browsers:\r\n Chrome: 111.0.5563.64\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-xntdt3?file=package.json\n\n### Describe the bug\n\nWhen running [pinia-plugin-persistedstate](https://github.com/prazdevs/pinia-plugin-persistedstate) with Nuxt 3.7.2, an error occurs:\r\n```\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'use')\r\n at eval (./node_modules/@pinia-plugin-persistedstate/nuxt/dist/runtime/plugin.mjs:10:9) \r\n at eval (./virtual:nuxt:/home/projects/github-xntdt3/.nuxt/plugins/server.mjs:36:89) \r\n at Module.executeAsync (./node_modules/unctx/dist/index.mjs:130:19) \r\n at setup (./virtual:nuxt:/home/projects/github-xntdt3/.nuxt/plugins/server.mjs:36:65) \r\n at eval (./node_modules/nuxt/dist/app/nuxt.js:114:60) \r\n at fn (./node_modules/nuxt/dist/app/nuxt.js:162:44) \r\n at Object.callAsync (./node_modules/unctx/dist/index.mjs:87:55) \r\n at eval (./node_modules/nuxt/dist/app/nuxt.js:164:56) \r\n at Object.runWithContext (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3855:18) \r\n at callWithNuxt (./node_modules/nuxt/dist/app/nuxt.js:164:24)\r\n ```\r\nDowngrading to Nuxt 3.7.1, it works: https://stackblitz.com/edit/github-xntdt3-fzhfhx?file=package.json\r\n\r\nCrossposted: https://github.com/prazdevs/pinia-plugin-persistedstate/issues/239\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3121,3122],{"name":3043,"color":3044},{"name":3021,"color":3022},23166,"[Nuxt 3.7.2] Error: Cannot read properties of undefined (reading 'use')","2023-09-13T23:27:42Z","https://github.com/nuxt/nuxt/issues/23166",0.5966797,{"description":3129,"labels":3130,"number":3133,"owner":3024,"repository":3024,"state":3052,"title":3134,"updated_at":3135,"url":3136,"score":3137},"### Environment\n\n------------------------------\r\n- Operating System: `Windows_NT`\r\n- Node Version: `v18.13.0`\r\n- Nuxt Version: `3.1.2`\r\n- Nitro Version: `2.1.1`\r\n- Package Manager: `yarn@1.22.19`\r\n- Builder: `vite`\r\n- User Config: `modules`, `typescript`, `serverHandlers`, `app`, `css`, `runtimeConfig`, `nitro`\r\n- Runtime Modules: `@vueuse/nuxt@9.5.0`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\nCannot read properties of undefined (reading 'modules') after upgrading to 3.1.2\n\n### Describe the bug\n\nGood day,\r\nafter upgrading to Nuxt 3.1.2 I couldn't run my app in dev mode \r\nwhen i run it and try to access the index page i get `Cannot read properties of undefined (reading 'modules')` \r\nso i tried to roll back to 3.1.1 and everything works fine the error is gone,\r\nbut building and running in production mode using v3.1.2 works fine i don't get the same error\r\ni just get:\r\n`Export \"useNitroApp\" of module \"node_modules/nitropack/dist/runtime/app.mjs\" was reexported through module \"node_modules/nitropack/dist/runtime/index.mjs\" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.\r\nEither change the import in \"node_modules/nuxt/dist/core/runtime/nitro/renderer.mjs\" to point directly to the exporting module or reconfigure \"output.manualChunks\" to ensure these modules end up in the same chunk.`\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\nNuxi 3.1.2 16:01:51\r\nNuxt 3.1.2 with Nitro 2.1.1 16:01:51\r\n 16:01:53 \r\n > Local: http://localhost:3000/\r\n > Network: http://192.168.0.105:3000/\r\n\r\ni Vite client warmed up in 4367ms 16:02:03\r\n√ Nitro built in 3631 ms nitro 16:02:06\r\n√ Vite server hmr 24 files in 1500.756ms 16:02:44\r\n[Vue warn]: inject() can only be used inside setup() or functional components. 16:02:44\r\n[Vue warn]: Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build. 16:02:44\r\n[Vue warn]: Unhandled error during execution of setup function 16:02:44\r\n at \u003CNuxtRoot>\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'modules') 16:02:44\r\n at _sfc_main.setup (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\nuxt\\dist\\app\\components\\nuxt-root.vue:76:16)\r\n at callWithErrorHandling (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\runtime-core\\dist\\runtime-core.cjs.js:171:22)\r\n at setupStatefulComponent (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\runtime-core\\dist\\runtime-core.cjs.js:7194:29)\r\n at setupComponent (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\runtime-core\\dist\\runtime-core.cjs.js:7149:11)\r\n at renderComponentVNode (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\server-renderer\\dist\\server-renderer.cjs.js:628:17)\r\n at renderToString (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\server-renderer\\dist\\server-renderer.cjs.js:906:26)\r\n at Object.renderToString$1 [as renderToString] (/C:/Users/xx/Desktop/nuxtapp/.nuxt/dev/index.mjs:19903:24)\r\n at Object.renderToString (/C:/Users/xx/Desktop/nuxtapp/node_modules/vue-bundle-renderer/dist/runtime.mjs:173:40)\r\n at async /C:/Users/xx/Desktop/nuxtapp/.nuxt/dev/index.mjs:19967:21\r\n at async /C:/Users/xx/Desktop/nuxtapp/.nuxt/dev/index.mjs:107:22\r\n[Vue warn]: inject() can only be used inside setup() or functional components. 16:02:44\r\n[Vue warn]: Unhandled error during execution of setup function 16:02:44 \r\n at \u003CNuxtRoot>\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'modules') 16:02:44 \r\n at _sfc_main.setup (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\nuxt\\dist\\app\\components\\nuxt-root.vue:76:16)\r\n at callWithErrorHandling (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\runtime-core\\dist\\runtime-core.cjs.js:171:22)\r\n at setupStatefulComponent (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\runtime-core\\dist\\runtime-core.cjs.js:7194:29)\r\n at setupComponent (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\runtime-core\\dist\\runtime-core.cjs.js:7149:11)\r\n at renderComponentVNode (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\server-renderer\\dist\\server-renderer.cjs.js:628:17)\r\n at renderToString (C:\\Users\\xx\\Desktop\\nuxtapp\\node_modules\\@vue\\server-renderer\\dist\\server-renderer.cjs.js:906:26)\r\n at Object.renderToString$1 [as renderToString] (/C:/Users/xx/Desktop/nuxtapp/.nuxt/dev/index.mjs:19903:24)\r\n at Object.renderToString (/C:/Users/xx/Desktop/nuxtapp/node_modules/vue-bundle-renderer/dist/runtime.mjs:173:40)\r\n at async /C:/Users/xx/Desktop/nuxtapp/.nuxt/dev/index.mjs:19967:21\r\n at async /C:/Users/xx/Desktop/nuxtapp/.nuxt/dev/index.mjs:107:22\n```\n",[3131,3132],{"name":3043,"color":3044},{"name":3021,"color":3022},18781,"Cannot read properties of undefined (reading 'modules') after upgrading to 3.1.2","2023-02-05T14:17:15Z","https://github.com/nuxt/nuxt/issues/18781",0.5980118,["Reactive",3139],{},["Set"],["ShallowReactive",3142],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fsaDs7AaixFHOPH2oFGMeEZ_lZsHjE-fwM9GEjpJf2GY":-1},"/nuxt/ui/3005"]