\n\n### Workaround\nUsing `defineVitestConfig` and hoisting the configuration up to root works fine. Unfortunately I'd need to run three Vitest tasks and couldn't make use of the `projects` functionality.\n\nFor example:\n\n```\npnpm vitest --config vitest.browser.config.ts\npnpm vitest --config vitest.unit.config.ts\npnpm vitest --config vitest.e2e.config.ts\n# 😔\n```\n\n---\n\nSo, I can't figure out how to get it working. I've tried different combinations, singular projects, and using the deprecated `workspaces` key. The method `defineVitestProject` isn't documented and I've read through the code and I'm not really sure why I'm getting an error.\n\n### Nuxt Info\n\n```\n- Operating System: `Darwin`\n- Node Version: `v22.14.0`\n- Nuxt Version: `3.17.5`\n- CLI Version: `3.25.1`\n- Nitro Version: `2.11.12`\n- Package Manager: `pnpm@10.11.1`\n- Builder: `-`\n- User Config: `compatibilityDate`, `modules`\n- Runtime Modules: `@nuxt/test-utils/module@3.19.1`\n- Build Modules: `-`\n```\n\n### Additional information\n\n- [x] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [x] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\n- [x] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3147],{"name":3135,"color":3148},"5D08F5",1322,"test-utils","Support Vitest `projects` option for Browser Mode","2025-06-18T13:51:03Z","https://github.com/nuxt/test-utils/issues/1322",0.6338565,{"description":3156,"labels":3157,"number":3167,"owner":3138,"repository":3138,"state":3168,"title":3169,"updated_at":3170,"url":3171,"score":3172},"### Environment\r\n\r\n------------------------------\r\n- Operating System: `Darwin`\r\n- Node Version: `v16.14.0`\r\n- Nuxt Version: `3.0.0-rc.9`\r\n- Nitro Version: `0.5.0`\r\n- Package Manager: `npm@8.3.1`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\n1. npx nuxi init nuxt-app\r\n2. cd nuxt-app\r\n3. npm install\r\n4. npm run dev\r\n\r\nError is thrown only when running on macbook...\r\n\r\n### Describe the bug\r\n\r\nUnable to run dev after fresh install on Macbook. \r\nHowever, doing npm run build, and npm run preview works without issue.\r\nTesting in stackblitz shows no issues however. \r\n\r\n\r\n\r\n\r\n### Additional context\r\n\r\nHad no issues yesterday when doing fresh install of rc.9\r\n\r\n### Logs\r\n\r\n```shell\r\ngurpinder@Gurpinders-MacBook-Pro bug % npx nuxi init bug-test\r\nNeed to install the following packages:\r\n nuxi\r\nOk to proceed? (y) \r\nNuxi 3.0.0-rc.9 22:28:53\r\nℹ cloned nuxt/starter#v3 to /Users/gurpinder/Desktop/bug/bug-test 22:28:54\r\n 22:28:54\r\nNuxi 3.0.0-rc.9 22:29:51\r\nNuxt 3.0.0-rc.9 with Nitro 0.5.0 22:29:51\r\n 22:29:54\r\n > Local: http://localhost:3000/ \r\n > Network: http://192.168.0.106:3000/\r\n\r\nℹ Vite server warmed up in 171ms 22:29:55\r\n✔ Nitro built in 185 ms nitro 22:29:55\r\nℹ Vite client warmed up in 701ms 22:29:55\r\n[Vue warn]: inject() can only be used inside setup() or functional components.\r\n[Vue warn]: Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.\r\n[Vue warn]: Unhandled error during execution of setup function \r\n at \u003CNuxtRoot>\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'modules')\r\n at _sfc_main.setup (./node_modules/nuxt/dist/app/components/nuxt-root.vue:67:16) \r\n at callWithErrorHandling (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:157:22) \r\n at setupStatefulComponent (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7107:29) \r\n at setupComponent (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7062:11) \r\n at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:172:17) \r\n at renderToString (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:446:26) \r\n at Object.renderToString$1 [as renderToString] (./.nuxt/dev/index.mjs:472:24) \r\n at Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:173:40) \r\n at processTicksAndRejections (node:internal/process/task_queues:96:5) \r\n at async ./.nuxt/dev/index.mjs:521:21\r\n[Vue warn]: inject() can only be used inside setup() or functional components.\r\n[Vue warn]: Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.\r\n[Vue warn]: Unhandled error during execution of setup function \r\n at \u003CNuxtRoot>\r\n[Vue warn]: inject() can only be used inside setup() or functional components.\r\n[Vue warn]: Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.\r\n[Vue warn]: Unhandled error during execution of setup function \r\n at \u003CNuxtRoot>\r\n```\r\n",[3158,3161,3164],{"name":3159,"color":3160},"3.x","29bc7f",{"name":3162,"color":3163},"bug","d73a4a",{"name":3165,"color":3166},"vite","3574D1",14802,"closed","Cannot read properties of undefined (reading 'modules')","2023-01-19T17:43:02Z","https://github.com/nuxt/nuxt/issues/14802",0.6167887,{"description":3174,"labels":3175,"number":3178,"owner":3138,"repository":3138,"state":3168,"title":3179,"updated_at":3180,"url":3181,"score":3182},"### Environment\n\n- Operating System: `Windows_NT`\r\n- Node Version: `v14.18.1`\r\n- Nuxt Version: `3.3.1`\r\n- Nitro Version: `-`\r\n- Package Manager: `pnpm@7.25.0`\r\n- Builder: `vite`\r\n- User Config: `modules`, `unocss`, `css`, `content`, `devtools`\r\n- Runtime Modules: `@nuxt/content@2.5.2`, `@unocss/nuxt@0.49.8`, `@vueuse/nuxt@9.13.0`, `@nuxt/devtools@0.2.5-27988848.51397f9`\r\n- Build Modules: `-`\n\n### Reproduction\n\n\"@iconify/json\": \"^2.2.27\",\r\n \"@kaivanwong/eslint-config\": \"0.13.14\",\r\n \"@nuxt/content\": \"^2.4.3\",\r\n \"@nuxt/devtools\": \"npm:@nuxt/devtools-edge@latest\",\r\n \"@unocss/nuxt\": \"^0.49.8\",\r\n \"@unocss/reset\": \"^0.49.8\",\r\n \"@vueuse/core\": \"^9.13.0\",\r\n \"@vueuse/nuxt\": \"^9.13.0\",\r\n \"eslint\": \"^8.35.0\",\r\n \"nuxt\": \"^3.3.1\",\r\n \"sass\": \"^1.58.3\"\n\n### Describe the bug\n\nCannot read property 'name' of undefined\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3176,3177],{"name":3159,"color":3160},{"name":3135,"color":3136},19840,"Cannot read property 'name' of undefined","2023-03-21T09:01:02Z","https://github.com/nuxt/nuxt/issues/19840",0.6201056,{"labels":3184,"number":3190,"owner":3138,"repository":3138,"state":3168,"title":3191,"updated_at":3192,"url":3193,"score":3194},[3185,3186,3187],{"name":3159,"color":3160},{"name":3135,"color":3136},{"name":3188,"color":3189},"upstream","E8A36D",13382,"Cannot read properties of undefined (reading 'getSSRProps')","2024-12-04T00:16:36Z","https://github.com/nuxt/nuxt/issues/13382",0.62126034,{"description":3196,"labels":3197,"number":3200,"owner":3138,"repository":3138,"state":3168,"title":3179,"updated_at":3201,"url":3202,"score":3203},"### Environment\n\n------------------------------\r\n- Operating System: `Darwin`\r\n- Node Version: `v16.13.1`\r\n- Nuxt Version: `3.3.1`\r\n- Nitro Version: `2.3.2`\r\n- Package Manager: `yarn@1.22.19`\r\n- Builder: `vite`\r\n- User Config: `meta`, `modules`\r\n- Runtime Modules: `nuxt-windicss@2.6.0`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\nhttps://github.com/Mnigos/biuro-makowska\n\n### Describe the bug\n\nApplication is building fine, but not in vercel deployment.\r\n\n\n### Additional context\n\n`nuxt.config.ts`\r\n```ts\r\n// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config\r\nexport default defineNuxtConfig({\r\n meta: {\r\n title: 'Biuro Makowska',\r\n meta: [\r\n { charset: 'utf-8' },\r\n { name: 'viewport', content: 'width=device-width, initial-scale=1' },\r\n {\r\n hid: 'description',\r\n name: 'description',\r\n content:\r\n 'Biuro Rachunkowe Joanna Makowska to certyfikowane biuro, które zapewnia swoim klientom profesjonalną obsługę oraz rzetelne i fachowe świadczenie usług księgowych.',\r\n },\r\n {\r\n name: 'msapplication-TileColor',\r\n content: '#000000',\r\n },\r\n {\r\n name: 'theme-color',\r\n content: '#ffffff',\r\n },\r\n ],\r\n link: [\r\n { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' },\r\n { rel: 'icon', type: 'image/png', sizes: '64x64', href: '/favicon-64x64.png' },\r\n { rel: 'manifest', href: '/site.webmanifest' },\r\n ],\r\n },\r\n modules: ['nuxt-windicss'],\r\n})\r\n```\n\n### Logs\n\n```shell-script\n$ nuxt prepare\r\n--\r\n18:05:05.374 | [log] Nuxi 3.3.1\r\n18:05:06.986 | [info] [@nuxtjs/web-vitals] Auto detected provider: vercel\r\n18:05:06.991 | [error] Cannot read property 'name' of undefined\r\n18:05:06.991 | at normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:170:106)\r\n18:05:06.991 | at async installModule (node_modules/@nuxt/kit/dist/index.mjs:451:15)\r\n18:05:06.991 | at async initNuxt (node_modules/nuxt/dist/index.mjs:2469:7)\r\n18:05:06.992 | at async loadNuxt (node_modules/nuxt/dist/index.mjs:2523:5)\r\n18:05:06.992 | at async loadNuxt (node_modules/@nuxt/kit/dist/index.mjs:539:19)\r\n18:05:06.992 | at async Object.invoke (node_modules/nuxi/dist/chunks/prepare.mjs:37:18)\r\n18:05:06.992 | at async _main (node_modules/nuxi/dist/cli.mjs:49:20)\n```\n",[3198,3199],{"name":3159,"color":3160},{"name":3135,"color":3136},19892,"2023-03-24T14:59:37Z","https://github.com/nuxt/nuxt/issues/19892",0.6214888,{"description":3205,"labels":3206,"number":3212,"owner":3138,"repository":3138,"state":3168,"title":3213,"updated_at":3214,"url":3215,"score":3216},"### Environment\n\n- Operating System: `Darwin`\n- Node Version: `v22.15.1`\n- Nuxt Version: `3.17.4`\n- CLI Version: `3.25.1`\n- Nitro Version: `2.11.12`\n- Package Manager: `npm@11.4.0`\n- Builder: `-`\n- User Config: `ssr`, `css`, `modules`, `runtimeConfig`, `app`, `imports`, `devtools`, `formkit`, `i18n`, `typescript`, `build`, `eslint`, `vite`, `compatibilityDate`\n- Runtime Modules: `@formkit/auto-animate/nuxt@0.8.2`, `@formkit/nuxt@1.6.9`, `@hebilicious/vue-query-nuxt@0.3.0`, `@nuxt/eslint@1.4.1`, `@nuxtjs/i18n@9.5.4`, `@pinia/nuxt@0.11.0`, `@vueuse/nuxt@13.2.0`\n- Build Modules: `-`\n\n### Reproduction\n\nUnfortunately, I have no clue\n\n### Describe the bug\n\nI recently upgraded Nuxt and my other dependencies and when I use `npm run generate`, I get prerender errors on some pages (not all of them). I tried to comment out everything in the corresponding page components (the page has now only a `\u003Cdiv />` 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```",[3207,3208,3209],{"name":3135,"color":3136},{"name":3188,"color":3189},{"name":3210,"color":3211},"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.6259675,{"description":3218,"labels":3219,"number":3227,"owner":3138,"repository":3138,"state":3168,"title":3228,"updated_at":3229,"url":3230,"score":3231},"### 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_",[3220,3221,3224],{"name":3135,"color":3136},{"name":3222,"color":3223},"windows","C681FD",{"name":3225,"color":3226},"needs reproduction","FBCA04",28522,"Cannot read properties of undefined (reading 'replace')","2025-03-24T22:56:32Z","https://github.com/nuxt/nuxt/issues/28522",0.62611455,{"description":3233,"labels":3234,"number":3243,"owner":3138,"repository":3138,"state":3168,"title":3244,"updated_at":3245,"url":3246,"score":3247},"### Environment\r\n\r\n------------------------------\r\n- Operating System: `Darwin`\r\n- Node Version: `v16.18.0`\r\n- Nuxt Version: `3.1.1`\r\n- Nitro Version: `2.1.0`\r\n- Package Manager: `npm@8.19.2`\r\n- Builder: `vite`\r\n- User Config: `nitro`, `runtimeConfig`, `vue`, `app`, `serverHandlers`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\r\n\r\n### Reproduction\r\n\r\nI wish I could do this, but the project has internal dependencies that I cannot fully provide.\r\n\r\n### Describe the bug\r\n\r\nAfter some time of things working just fine in our project, we have started to experience the following error. We have been struggling to troubleshoot this issue. \r\n```\r\n[Vue warn]: Unhandled error during execution of setup function \r\n at \u003CNuxtRoot>\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'modules')\r\n at _sfc_main.setup (./node_modules/nuxt/dist/app/components/nuxt-root.vue:76:16) \r\n at callWithErrorHandling (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:157:22) \r\n at setupStatefulComponent (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7176:29) \r\n at setupComponent (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7131:11) \r\n at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:172:17) \r\n at renderToString (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:450:26) \r\n at Object.renderToString$1 [as renderToString] (./.nuxt/dev/index.mjs:970:24) \r\n at Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:173:40) \r\n at processTicksAndRejections (node:internal/process/task_queues:96:5) \r\n at async ./.nuxt/dev/index.mjs:1034:21\r\n```\r\n\r\n### Additional context\r\n\r\nI have read through other bug reports on this issue in the September timeframe and have verified that we don't have things like multiple versions of Vue in the package-lock.json file. It is not a mono-repo etc. I don't have a node_modules directory in my $HOME directory. The problem seems to only occur when running via 'npm run dev'. The problem does not manifest itself after running an 'npm build' and running the app via the built output.\r\n\r\nM-C02YNX67LVCG:src sdschetnan$ npm list --depth=10 | grep ' vue@'\r\n│ │ │ └── vue@3.2.45 deduped\r\n│ │ │ └── vue@3.2.45 deduped\r\n│ │ └── vue@3.2.45 deduped\r\n│ │ │ └── vue@3.2.45 deduped\r\n│ │ └── vue@3.2.45 deduped\r\n│ │ └── vue@3.2.45 deduped\r\n│ └─┬ vue@3.2.45\r\n│ │ └── vue@3.2.45 deduped\r\nM-C02YNX67LVCG:src sdschetnan$\r\n\r\nWe experienced a similar issue yesterday with our base application where team members were reporting that it worked some of the time, but simply changing the name of the directory that contained the project could produce this error.\r\n\r\n### Logs\r\n\r\n```shell-script\r\n[Vue warn]: inject() can only be used inside setup() or functional components.\r\n[Vue warn]: Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.\r\n[Vue warn]: Unhandled error during execution of setup function \r\n at \u003CNuxtRoot>\r\n[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'modules')\r\n at _sfc_main.setup (./node_modules/nuxt/dist/app/components/nuxt-root.vue:76:16) \r\n at callWithErrorHandling (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:157:22) \r\n at setupStatefulComponent (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7176:29) \r\n at setupComponent (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:7131:11) \r\n at renderComponentVNode (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:172:17) \r\n at renderToString (./node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:450:26) \r\n at Object.renderToString$1 [as renderToString] (./.nuxt/dev/index.mjs:970:24) \r\n at Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:173:40) \r\n at processTicksAndRejections (node:internal/process/task_queues:96:5) \r\n at async ./.nuxt/dev/index.mjs:1034:21\r\n```\r\n",[3235,3236,3237,3240],{"name":3159,"color":3160},{"name":3135,"color":3136},{"name":3238,"color":3239},"nitro","bfd4f2",{"name":3241,"color":3242},"upstream-bug","B60205",18563,"[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'modules')","2024-09-08T20:38:50Z","https://github.com/nuxt/nuxt/issues/18563",0.62789446,{"description":3249,"labels":3250,"number":3253,"owner":3138,"repository":3138,"state":3168,"title":3254,"updated_at":3255,"url":3256,"score":3257},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v20.12.1`\r\n- Nuxt Version: `3.11.2`\r\n- CLI Version: `3.11.1`\r\n- Nitro Version: `2.5.0-28072065.c1cf5ce`\r\n- Package Manager: `npm@10.5.0`\r\n- Builder: `-`\r\n- User Config: `devtools`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\r\n\r\n### Reproduction\r\n\r\n> npx nuxi@latest init test2\r\n✔ Which package manager would you like to use?\r\nnpm\r\n◐ Installing dependencies... \r\n\r\n### Describe the bug\r\n\r\nFollowing the getting started documentation throws the error. Happens with my existing nuxt3 project as well.\r\nhttps://nuxt.com/docs/getting-started/installation\r\n\r\n5:39:26 PM\r\n\r\n> postinstall\r\n> nuxt prepare\r\n\r\n\r\n ERROR Cannot read properties of undefined (reading 'some') 5:39:46 PM\r\n\r\n at node_modules/nuxt/dist/index.mjs:2733:21\r\n at node_modules/hookable/dist/index.mjs:48:66\r\n at node_modules/hookable/dist/index.mjs:48:56\r\n at async generateApp (/Users/star_coder/node_modules/nuxt3/dist/index.mjs:3311:3)\r\n at async _applyPromised (/Users/star_coder/node_modules/perfect-debounce/dist/index.mjs:54:10) \r\n\r\n\r\n\r\n ERROR Cannot read properties of undefined (reading 'some') 5:39:46 PM\r\n\r\nnpm ERR! code 1\r\nnpm ERR! path /Users/star_coder/test2\r\nnpm ERR! command failed\r\nnpm ERR! command sh -c nuxt prepare\r\n\r\nnpm ERR! A complete log of this run can be found in: /Users/star_coder/.npm/_logs/2024-04-05T12_09_27_221Z-debug-0.log\r\n\r\n ERROR Error: Command failed with exit code 1: npm install \r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n```shell-script\r\nBelow is the npm log:\r\n/Users/star_coder/.npm/_logs/2024-04-05T12_09_27_221Z-debug-0.log\r\n4626 info run fsevents@2.3.3 install node_modules/fsevents node-gyp rebuild\r\n4627 info run fsevents@2.3.3 install { code: 1, signal: null }\r\n4628 verbose reify failed optional dependency /Users/star_coder/test2/node_modules/fsevents\r\n4629 silly reify mark deleted [ '/Users/star_coder/test2/node_modules/fsevents' ]\r\n4630 timing build:run:install:node_modules/fsevents Completed in 1364ms\r\n4631 timing build:run:install Completed in 1364ms\r\n4632 info run esbuild@0.20.2 postinstall node_modules/esbuild node install.js\r\n4633 info run vue-demi@0.14.7 postinstall node_modules/@vueuse/components/node_modules/vue-demi node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"\r\n4634 info run vue-demi@0.14.7 postinstall node_modules/@vueuse/core/node_modules/vue-demi node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"\r\n4635 info run vue-demi@0.14.7 postinstall node_modules/@vueuse/integrations/node_modules/vue-demi node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"\r\n4636 info run vue-demi@0.14.7 postinstall node_modules/@vueuse/shared/node_modules/vue-demi node -e \"try{require('./scripts/postinstall.js')}catch(e){}\"\r\n4637 info run vue-demi@0.14.7 postinstall { code: 0, signal: null }\r\n4638 timing build:run:postinstall:node_modules/@vueuse/shared/node_modules/vue-demi Completed in 137ms\r\n4639 info run vue-demi@0.14.7 postinstall { code: 0, signal: null }\r\n4640 timing build:run:postinstall:node_modules/@vueuse/core/node_modules/vue-demi Completed in 141ms\r\n4641 info run vue-demi@0.14.7 postinstall { code: 0, signal: null }\r\n4642 timing build:run:postinstall:node_modules/@vueuse/components/node_modules/vue-demi Completed in 169ms\r\n4643 info run vue-demi@0.14.7 postinstall { code: 0, signal: null }\r\n4644 timing build:run:postinstall:node_modules/@vueuse/integrations/node_modules/vue-demi Completed in 174ms\r\n4645 info run esbuild@0.20.2 postinstall { code: 0, signal: null }\r\n4646 timing build:run:postinstall:node_modules/esbuild Completed in 764ms\r\n4647 timing build:run:postinstall Completed in 764ms\r\n4648 timing build:deps Completed in 2166ms\r\n4649 timing build Completed in 2166ms\r\n4650 timing reify:build Completed in 2167ms\r\n4651 timing reify:trash Completed in 6ms\r\n4652 timing reify:save Completed in 242ms\r\n4653 timing reify Completed in 15146ms\r\n4654 timing command:install Completed in 19170ms\r\n4655 verbose stack Error: command failed\r\n4655 verbose stack at ChildProcess.\u003Canonymous> (/Users/star_coder/.nvm/versions/node/v20.12.1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)\r\n4655 verbose stack at ChildProcess.emit (node:events:518:28)\r\n4655 verbose stack at maybeClose (node:internal/child_process:1105:16)\r\n4655 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)\r\n4656 verbose cwd /Users/star_coder/test2\r\n4657 verbose Darwin 21.6.0\r\n4658 verbose node v20.12.1\r\n4659 verbose npm v10.5.0\r\n4660 error code 1\r\n4661 error path /Users/star_coder/test2\r\n4662 error command failed\r\n4663 error command sh -c nuxt prepare\r\n4664 verbose exit 1\r\n4665 timing npm Completed in 19412ms\r\n4666 verbose code 1\r\n4667 error A complete log of this run can be found in: /Users/star_coder/.npm/_logs/2024-04-05T12_09_27_221Z-debug-0.log\r\n```\r\n",[3251,3252],{"name":3159,"color":3160},{"name":3135,"color":3136},26654,"postinstall nuxt prepare error","2024-04-05T12:52:05Z","https://github.com/nuxt/nuxt/issues/26654",0.6311543,["Reactive",3259],{},["Set"],["ShallowReactive",3262],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f-Xzbm9g0Mwfx96qT3Yt7Ry2rlReqp-EANkmuYXeOzvU":-1},"/nuxt/test-utils/1326"]