` 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```",[2947,2948,2951],{"name":2868,"color":2869},{"name":2949,"color":2950},"upstream","E8A36D",{"name":2952,"color":2953},"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.672092,{"description":2960,"labels":2961,"number":2964,"owner":2871,"repository":2871,"state":2885,"title":2965,"updated_at":2966,"url":2967,"score":2968},"### 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",[2962,2963],{"name":2881,"color":2882},{"name":2868,"color":2869},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.67550945,{"description":2970,"labels":2971,"number":2974,"owner":2871,"repository":2871,"state":2885,"title":2975,"updated_at":2976,"url":2977,"score":2978},"### Environment\r\n\r\n``` \r\n\r\n System:\r\n OS: macOS 12.6.2\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 126.39 MB / 16.00 GB\r\n Shell: 3.5.1 - /opt/homebrew/bin/fish\r\n Binaries:\r\n Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node\r\n Yarn: 1.22.19 - ~/.yarn/bin/yarn\r\n npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm\r\n Browsers:\r\n Chrome: 111.0.5563.64\r\n Safari: 16.2\r\n npmPackages:\r\n @nuxt/image: ^0.7.1 => 0.7.1 \r\n nuxt: ^2.16.1 => 2.16.2 \r\n```\r\n\r\n\r\n### Reproduction\r\n\r\nI apologise for not providing a minimal reproduction... Issue depends on two private repos.\r\nI created a tailwindcss plugin that I import in my nuxt app as an npm dependency.\r\nThe issue seems to be related to a webpack postcss-loader configuration. \r\n\r\n\r\n### Describe the bug\r\n\r\n```\r\nModule build failed (from ./node_modules/postcss-loader/dist/cjs.js): TypeError: Cannot read properties of undefined (reading 'postcss') at Processor.normalize (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/postcss/lib/processor.js:35:13) at new Processor (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/postcss/lib/processor.js:11:25) at postcss (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/postcss/lib/postcss.js:26:10) at Object.module.exports [as sync] (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/postcss-js/sync.js:7:19) at /Users/gkatsanos/repos/visable/explore-frontend/node_modules/@visable-dev/ui-components/src/index.js:7:32 at registerPlugins (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/tailwindcss/lib/lib/setupContextUtils.js:777:61) at createContext (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/tailwindcss/lib/lib/setupContextUtils.js:1160:5) at getContext (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/tailwindcss/lib/lib/setupContextUtils.js:1217:20) at /Users/gkatsanos/repos/visable/explore-frontend/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:115:81 at /Users/gkatsanos/repos/visable/explore-frontend/node_modules/tailwindcss/lib/processTailwindFeatures.js:46:11 at plugins (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/tailwindcss/lib/plugin.js:38:63) at LazyResult.runOnRoot (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:339:16) at LazyResult.runAsync (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:393:26) at async Object.loader (/Users/gkatsanos/repos/visable/explore-frontend/node_modules/postcss-loader/dist/index.js:95:14)\r\n```\r\n\r\n### Additional context\r\n\r\nHere are the dependencies of the tailwind plugin I am trying to import:\r\n```\r\n \"devDependencies\": {\r\n \"@types/css-selector-tokenizer\": \"^0.7.1\",\r\n \"husky\": \"^8.0.3\",\r\n \"postcss\": \"^8.1.6\",\r\n \"postcss-cli\": \"8.3.0\",\r\n \"postcss-import\": \"13.0.0\",\r\n \"postcss-nested\": \"5.0.1\",\r\n \"prejss-cli\": \"0.3.3\",\r\n \"prettier\": \"^2.7.1\",\r\n \"pretty-quick\": \"^3.1.3\",\r\n \"vite\": \"^4.1.4\"\r\n },\r\n \"dependencies\": {\r\n \"@visable-dev/wlw-tailwindcss-config\": \"^3.0.5\",\r\n \"autoprefixer\": \"^10.4.14\",\r\n \"css-selector-tokenizer\": \"^0.8.0\",\r\n \"postcss-js\": \"^4.0.0\",\r\n \"tailwindcss\": \"^3\"\r\n },\r\n```\r\nAnd its' post css config:\r\n```js\r\nmodule.exports = {\r\n plugins: {\r\n \"tailwindcss/nesting\": {},\r\n tailwindcss: {},\r\n autoprefixer: {},\r\n },\r\n};\r\n```\r\n\r\nHere are the deps of the nuxt application:\r\n```js\r\n\"dependencies\": {\r\n \"@koumoul/nuxt-config-inject\": \"^0.4.10\",\r\n \"@nuxt/image\": \"^0.7.1\",\r\n \"@nuxtjs/axios\": \"^5.13.6\",\r\n \"@nuxtjs/device\": \"^2.1.0\",\r\n \"@nuxtjs/proxy\": \"^2.1.0\",\r\n \"@nuxtjs/robots\": \"^2.5.0\",\r\n \"@nuxtjs/router\": \"^1.6.1\",\r\n \"@nuxtjs/style-resources\": \"^1.2.0\",\r\n \"@nuxtjs/svg\": \"^0.4.0\",\r\n \"@nuxtjs/tailwindcss\": \"^6.0.0\",\r\n \"@tailwindcss/line-clamp\": \"^0.4.2\",\r\n \"@visable-dev/ab-testing\": \"^4.0.4\",\r\n \"@visable-dev/favourites\": \"^1.9.3\",\r\n \"@visable-dev/fontsources\": \"^0.5.0\",\r\n \"@visable-dev/quick-connect\": \"^1.1.4\",\r\n \"@visable-dev/routing\": \"^7.0.0\",\r\n \"@visable-dev/styleguide\": \"^35.13.1\",\r\n \"@visable-dev/tracking\": \"^3.0.0\",\r\n \"@visable-dev/ui-components\": \"^0.5.1\",\r\n \"@visable-dev/vue\": \"14.7.2-alpha.0\",\r\n \"@visable-dev/wlw-tailwindcss-config\": \"^3.0.5\",\r\n \"await-to-js\": \"^3.0.0\",\r\n \"consola\": \"^2.15.3\",\r\n \"cookie-universal-nuxt\": \"^2.1.5\",\r\n \"core-js\": \"^3.25.5\",\r\n \"css-loader\": \"^6.7.1\",\r\n \"dd-trace\": \"^2.18.0\",\r\n \"imgix.js\": \"^3.6.1\",\r\n \"insane\": \"^2.6.2\",\r\n \"nuxt\": \"^2.16.1\",\r\n \"nuxt-breakpoints\": \"^1.1.9\",\r\n \"nuxt-user-agent\": \"^1.2.2\",\r\n \"portal-vue\": \"^2.1.7\",\r\n \"sass\": \"1.32.4\",\r\n \"sass-loader\": \"~10.1.1\",\r\n \"v-tooltip\": \"^2.1.3\",\r\n \"vee-validate\": \"^3.4.13\",\r\n \"vue-clipboard2\": \"^0.3.3\",\r\n \"vue-i18n\": \"~8.27.1\",\r\n \"vue-lazy-hydration\": \"^2.0.0-beta.4\",\r\n \"vue-popperjs\": \"^2.3.0\",\r\n \"vue-slick-carousel\": \"^1.0.6\",\r\n \"vuejs-paginate\": \"^2.1.0\",\r\n \"weighted-random\": \"^0.1.0\"\r\n },\r\n \"devDependencies\": {\r\n \"@applitools/eyes-cypress\": \"^3.27.2\",\r\n \"@babel/core\": \"^7.19.3\",\r\n \"@babel/eslint-parser\": \"^7.19.1\",\r\n \"@babel/preset-env\": \"^7.19.3\",\r\n \"@babel/runtime-corejs3\": \"^7.19.4\",\r\n \"@cypress/vue\": \"^4.2.1\",\r\n \"@size-limit/preset-app\": \"^8.1.0\",\r\n \"@size-limit/webpack\": \"^8.1.0\",\r\n \"@size-limit/webpack-why\": \"^8.1.0\",\r\n \"@vue/cli-plugin-eslint\": \"~5.0.8\",\r\n \"@vue/cli-service\": \"~4.5.19\",\r\n \"@vue/eslint-config-airbnb\": \"~5.3.0\",\r\n \"@vue/test-utils\": \"^1.3.0\",\r\n \"@vue/vue2-jest\": \"^28.0.1\",\r\n \"babel-jest\": \"^28.1.3\",\r\n \"cypress\": \"^10.9.0\",\r\n \"eslint\": \"~8.22.0\",\r\n \"eslint-config-prettier\": \"^8.5.0\",\r\n \"eslint-plugin-cypress\": \"^2.12.1\",\r\n \"eslint-plugin-html\": \"^7.1.0\",\r\n \"eslint-plugin-import\": \"^2.26.0\",\r\n \"eslint-plugin-prettier\": \"^4.2.1\",\r\n \"eslint-plugin-vue\": \"^8.7.1\",\r\n \"git-branch-is\": \"^4.0.0\",\r\n \"husky\": \"^8.0.1\",\r\n \"jest\": \"^28.1.3\",\r\n \"jest-environment-jsdom\": \"^28.1.3\",\r\n \"jest-jasmine2\": \"^28.1.3\",\r\n \"jest-serializer-vue\": \"^2.0.2\",\r\n \"jest-transform-stub\": \"^2.0.0\",\r\n \"jsdom\": \"^20.0.1\",\r\n \"prettier\": \"^2.7.1\",\r\n \"pretty-quick\": \"^3.1.3\",\r\n \"size-limit\": \"^8.1.0\",\r\n \"vuex-mock-store\": \"^0.0.8\"\r\n },\r\n```\r\n\r\n\r\n### Logs\r\n\r\n_No response_",[2972,2973],{"name":2868,"color":2869},{"name":2912,"color":2913},19771,"TypeError: Cannot read properties of undefined (reading 'postcss') at Processor.normalize","2023-03-20T11:54:43Z","https://github.com/nuxt/nuxt/issues/19771",0.67668164,{"description":2980,"labels":2981,"number":2986,"owner":2871,"repository":2871,"state":2885,"title":2987,"updated_at":2988,"url":2989,"score":2990},"### Environment\r\n\r\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v16.14.2\r\n- Nuxt Version: 3.5.0\r\n- Nitro Version: -\r\n- Package Manager: npm@9.2.0\r\n- Builder: vite\r\n- User Config: ssr, components, modules, pinia, svgo, css, tailwindcss\r\n- Runtime Modules: @nuxtjs/tailwindcss@6.7.0, @nuxtjs/i18n@8.0.0-beta.12, nuxt-svgo@3.1.0, @vueuse/nuxt@10.1.2, @pinia/nuxt@0.4.10\r\n- Build Modules: -\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\nRun ``npx nuxi upgrade --force``, and after I got a lot of error. Then delete node_modules and run `npm i` and have error.\r\n\r\n### Describe the bug\r\n\r\nBug after npm i command.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n```shell-script\r\n> postinstall\r\n> nuxt prepare\r\n\r\nNuxi 3.5.0 18:43:24 \r\nℹ Using Tailwind CSS from ~/assets/css/tailwind.scss nuxt:tailwindcss 18:43:26 \r\n\r\n WARN Vue I18n configuration file does not exist at i18n.config. Skipping... @nuxtjs/i18n 18:43:26 \r\n\r\n WARN i18n:extend-messages is deprecated. That hook will be removed feature at the time of the v8 official release. @nuxtjs/i18n 18:43:26 \r\nIf you're using it, please use i18n:registerModule instead.\r\n\r\n\r\n ERROR Cannot read properties of undefined (reading 'replace') 18:43:27 \r\n\r\n at /C:/repo/qvant/contacts-front/node_modules/nuxt/dist/index.mjs:890:140\r\n at Array.map (\u003Canonymous>)\r\n at Object.getContents (/C:/repo/qvant/contacts-front/node_modules/nuxt/dist/index.mjs:888:68)\r\n at compileTemplate (/C:/repo/qvant/contacts-front/node_modules/@nuxt/kit/dist/index.mjs:108:21)\r\n at /C:/repo/qvant/contacts-front/node_modules/nuxt/dist/index.mjs:3258:28\r\n at Array.map (\u003Canonymous>)\r\n at generateApp (/C:/repo/qvant/contacts-front/node_modules/nuxt/dist/index.mjs:3257:101)\r\n at async _applyPromised (/C:/repo/qvant/contacts-front/node_modules/nuxt/node_modules/perfect-debounce/dist/index.mjs:54:10)\r\n\r\nnpm ERR! code 1\r\nnpm ERR! path C:\\repo\\qvant\\contacts-front\r\nnpm ERR! command failed\r\nnpm ERR! command C:\\Windows\\system32\\cmd.exe /d /s /c nuxt prepare\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR! C:\\Users\\alexevi.av\\AppData\\Local\\npm-cache\\_logs\\2023-05-16T15_43_22_386Z-debug-0.log\r\n```\r\n",[2982,2983,2984],{"name":2881,"color":2882},{"name":2868,"color":2869},{"name":2936,"color":2985},"FBCA04",20884,"After update to Nuxt 3.5.0 after run npm i Cannot read properties of undefined (reading 'replace') ","2024-08-13T15:30:25Z","https://github.com/nuxt/nuxt/issues/20884",0.6778089,["Reactive",2992],{},["Set"],["ShallowReactive",2995],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f211bB3CmQdpn-47_RHfD-yMo2d4F66dfcFTIk7rEgnI":-1},"/nuxt/nuxt.com/979"]