\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).",[3032],{"name":3020,"color":3033},"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.66799265,{"description":3041,"labels":3042,"number":3049,"owner":3023,"repository":3035,"state":3050,"title":3051,"updated_at":3052,"url":3053,"score":3054},"### Environment\n\n- Operating System: Darwin\n- Node Version: v22.14.0\n- Nuxt Version: 3.17.1\n- CLI Version: 3.25.0\n- Nitro Version: 2.11.11\n- Package Manager: pnpm@9.6.0\n- Builder: -\n- User Config: modules, compatibilityDate\n- Runtime Modules: @nuxt/content@3.5.1\n- Build Modules: -\n\n### Reproduction\n\nI extended the Nuxt Content tests within the repo on my branch https://github.com/JessicaSachs/test-utils/pull/new/jess/vitest-nuxt-content\n\n### Describe the bug\n\n- Whenever `useRuntimeConfig` is used within the setup function of a component, the component fails to render. This happens for all the default Nuxt Content ProseH1-ProseH3 components.\n- Using `mountSuspended` within Vitest Browser Mode fails\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3043,3046],{"name":3044,"color":3045},"enhancement","a2eeef",{"name":3047,"color":3048},"good first issue","7057ff",1283,"closed","support nuxt environment in browser mode","2025-05-15T13:23:03Z","https://github.com/nuxt/test-utils/issues/1283",0.653696,{"description":3056,"labels":3057,"number":3062,"owner":3023,"repository":3023,"state":3050,"title":3063,"updated_at":3064,"url":3065,"score":3066},"### Environment\n\n- Operating System: Darwin\r\n- Node Version: v20.12.2\r\n- Nuxt Version: 3.11.2\r\n- CLI Version: 3.11.1\r\n- Nitro Version: 2.9.6\r\n- Package Manager: npm@10.5.0\r\n- Builder: -\r\n- User Config: modules, plugins, vite, runtimeConfig, routeRules\r\n- Runtime Modules: @nuxtjs/tailwindcss@6.12.0, @pinia/nuxt@0.5.1, @nuxt/content@2.12.1, @nuxtjs/supabase@1.2.2, @vueuse/motion/nuxt@2.1.0, @use-wagmi/nuxt@2.2.0\r\n- Build Modules: -\n\n### Reproduction\n\nSince the project is large scale and related with configuration thus wasn't able to share the reproduction\n\n### Describe the bug\n\nI have Nuxt 3.2 project and needed to migrate it to latest Nuxt and necessary packages. But after migration, project build are hanging thus cannot deploy on vercel or anywhere.\n\n### Additional context\n\nHere's the upgraded dependencies:\r\n```\r\n\"devDependencies\": {\r\n \"@nuxt/content\": \"^2.12.1\",\r\n \"@nuxtjs/tailwindcss\": \"^6.12.0\",\r\n \"@tailwindcss/aspect-ratio\": \"^0.4.2\",\r\n \"nuxt\": \"^3.11.2\"\r\n},\r\n\"dependencies\": {\r\n \"@hotjar/browser\": \"^1.0.9\",\r\n \"@nuxtjs/axios\": \"^5.13.6\",\r\n \"@nuxtjs/supabase\": \"^1.2.2\",\r\n \"@pinia/nuxt\": \"^0.5.1\",\r\n \"@rainbow-me/rainbowkit\": \"^2.0.6\",\r\n \"@sendgrid/mail\": \"^8.1.3\",\r\n \"@supabase/gotrue-js\": \"^2.62.2\",\r\n \"@supabase/supabase-js\": \"^2.43.1\",\r\n \"@tailwindcss/forms\": \"^0.5.7\",\r\n \"@tanstack/query-persist-client-core\": \"^5.35.1\",\r\n \"@tanstack/query-sync-storage-persister\": \"^5.35.1\",\r\n \"@tanstack/vue-query\": \"^5.35.1\",\r\n \"@tryghost/content-api\": \"^1.11.21\",\r\n \"@use-wagmi/nuxt\": \"^2.2.0\",\r\n \"@vue/shared\": \"3.4.26\",\r\n \"@vueuse/components\": \"^10.9.0\",\r\n \"@vueuse/motion\": \"^2.1.0\",\r\n \"@walletconnect/modal\": \"^2.6.2\",\r\n \"axios\": \"^1.6.8\",\r\n \"chart.js\": \"^4.4.2\",\r\n \"chartjs-adapter-date-fns\": \"^3.0.0\",\r\n \"chartjs-plugin-watermark\": \"^2.0.2\",\r\n \"chartjs-to-image\": \"^1.2.2\",\r\n \"daisyui\": \"^4.10.5\",\r\n \"date-fns\": \"^3.6.0\",\r\n \"ethers\": \"^6.12.1\",\r\n \"h3\": \"^1.11.1\",\r\n \"html-to-image\": \"^1.11.11\",\r\n \"html2canvas\": \"^1.4.1\",\r\n \"jsonwebtoken\": \"^9.0.2\",\r\n \"lite-youtube-embed\": \"^0.3.2\",\r\n \"moment\": \"^2.30.1\",\r\n \"moralis\": \"^2.26.1\",\r\n \"pathe\": \"^1.1.2\",\r\n \"pinia\": \"^2.1.7\",\r\n \"use-wagmi\": \"^1.5.0\",\r\n \"viem\": \"^2.9.32\",\r\n \"vite-plugin-node-polyfills\": \"^0.21.0\",\r\n \"vue\": \"^3.4.21\",\r\n \"vue-chartjs\": \"^5.3.1\",\r\n \"vue-gtag-next\": \"^1.14.0\",\r\n \"vue-hotjar\": \"^1.4.0\",\r\n \"vue-hotjar-next\": \"^2.0.1\",\r\n \"vue-recaptcha-v3\": \"^2.0.1\",\r\n \"vue3-circle-progress\": \"^1.0.7\",\r\n \"vue3-lottie\": \"^3.3.0\"\r\n}\r\n```\r\n\r\nAnd nuxt configuration:\r\n```\r\nimport { nodePolyfills } from \"vite-plugin-node-polyfills\";\r\n\r\nexport default defineNuxtConfig({\r\n modules: [\r\n \"@nuxtjs/tailwindcss\",\r\n \"@pinia/nuxt\",\r\n \"@nuxt/content\",\r\n \"@nuxtjs/supabase\",\r\n \"@vueuse/motion/nuxt\",\r\n [\r\n \"@use-wagmi/nuxt\",\r\n {\r\n excludeImports: [\"useQuery\"],\r\n },\r\n ],\r\n ],\r\n plugins: [\r\n \"~/plugins/vue-hotjar-next.client.js\",\r\n \"~/plugins/google-recaptcha.ts\",\r\n ],\r\n vite: {\r\n plugins: [nodePolyfills()],\r\n },\r\n runtimeConfig: {\r\n contentKey: process.env.GHOST_CONTENT_API_KEY,\r\n sendGridKey: process.env.SENDGRID_KEY,\r\n recaptchaKey: process.env.RECAPTCHA_SECRET,\r\n moralisKey: process.env.MORALIS_KEY,\r\n supabaseKey: process.env.SUPABASE_KEY,\r\n supabaseURL: process.env.SUPABASE_URL,\r\n public: {\r\n zapierHook: process.env.ZAPIER_HOOK,\r\n gtagId: process.env.GTAG_ID,\r\n ...\r\n motion: {\r\n directives: {\r\n \"pop-bottom\": {\r\n initial: {\r\n scale: 0,\r\n opacity: 0,\r\n y: 100,\r\n },\r\n visible: {\r\n scale: 1,\r\n opacity: 1,\r\n y: 0,\r\n },\r\n },\r\n },\r\n },\r\n },\r\n },\r\n ```\n\n### Logs\n\n```shell-script\n> build\r\n> nuxt build\r\n\r\nNuxt 3.11.2 with Nitro 2.9.6 6:33:26 PM\r\nℹ Using Tailwind CSS from ~/assets/css/tailwind.css nuxt:tailwindcss 6:33:26 PM\r\nℹ Building client... 6:33:27 PM\r\nℹ vite v5.2.11 building for production... 6:33:27 PM\r\ntransforming (25) node_modules/nuxt/dist/app/components/nuxt-root.vue\r\n🌼 daisyUI 4.10.5\r\n├─ ✔︎ 2 themes added https://daisyui.com/docs/themes\r\n╰─ ❤︎ Support daisyUI project: https://opencollective.com/daisyui\r\n\r\nnode_modules/use-wagmi/dist/esm/hooks/useAccount.js (1:0): Module level directives cause errors when bundled, \"use client\" in \"node_modules/use-wagmi/dist/esm/hooks/useAccount.js\" was ignored.\r\nnode_modules/use-wagmi/dist/esm/hooks/useAccountEffect.js (1:0): Module level directives cause errors when bundled, \"use client\" in \"node_modules/use-wagmi/dist/esm/hooks/useAccountEffect.js\" was ignored.\r\nnode_modules/use-wagmi/dist/esm/hooks/useBalance.js (1:0): Module level directives cause errors when bundled, \"use client\" in \"node_modules/use-wagmi/dist/esm/hooks/useBalance.js\" was ignored.\r\nnode_modules/use-wagmi/dist/esm/hooks/useBlock.js (1:0): Module level directives cause errors when bundled, \"use client\" in \"node_modules/use-wagmi/dist/esm/hooks/useBlock.js\" was ignored.\r\nnode_modules/use-wagmi/dist/esm/hooks/useBlockNumber.js (1:0): Module level directives cause errors when bundled, \"use client\" in \"node_modules/use-wagmi/dist/esm/hooks/useBlockNumber.js\" was ignored.\r\nnode_modules/use-wagmi/dist/esm/hooks/useBlockTransactionCount.js (1:0): Module level directives cause errors when bundled, \"use client\" in \"node_modules/use-wagmi/dist/esm/hooks/useBlockTransactionCount.js\" was ignored.\r\n...\r\nΣ Total size: 20 MB (5.6 MB gzip)\r\n✔ You can preview this build using node .output/server/index.mjs\n```\n",[3058,3059],{"name":3020,"color":3021},{"name":3060,"color":3061},"needs reproduction","FBCA04",27098,"Build hangs after migrating Nuxt3.2 to Nuxt3.11","2024-09-23T14:24:09Z","https://github.com/nuxt/nuxt/issues/27098",0.6674404,{"description":3068,"labels":3069,"number":3074,"owner":3023,"repository":3023,"state":3050,"title":3075,"updated_at":3076,"url":3077,"score":3078},"### Environment\n\n------------------------------\r\n- Operating System: `Darwin`\r\n- Node Version: `v17.9.1`\r\n- Nuxt Version: `3.0.0-rc.12`\r\n- Nitro Version: `0.6.0`\r\n- Package Manager: `npm@8.11.0`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\nhttps://github.com/asmerkin/nuxt3-vitest-issue\r\n\r\nJust install with `npm install` and then use `npm run test` to start vitest.\n\n### Describe the bug\n\nWhen starting tests, it fails, and it seems to be looking for `jest` despite we´re using `vitest` here. \n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell\nFAIL pages/index.spec.js > Example Test\r\n 4: 0x104b13778 node::fs::FSReqAfterScope::~FSReqAfterScope() [/Users/asmerkin/.nvm/versions/node/v17.9.1/bin/node]\r\n 5: 0x104b13c30 node::fs::AfterOpenFileHandle(uv_fs_s*) [/Users/asmerkin/.nvm/versions/node/v17.9.1/bin/node]\r\nError: [vite]: Rollup failed to resolve import \"jest\" from \"node_modules/@nuxt/test-utils-edge/dist/index.mjs\".\r\nThis is most likely unintended because it can break your application at runtime.\r\nIf you do want to externalize this module explicitly add it to\r\n`build.rollupOptions.external`\r\n ❯ onRollupWarning node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45916:19\r\n ❯ onwarn node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45714:13\r\n ❯ Object.onwarn node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:23225:13\r\n ❯ ModuleLoader.handleResolveId node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:22352:26\r\n ❯ ModuleLoader.resolveDynamicImport node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:22404:120\r\n ❯ async file:/Users/asmerkin/Workspace/intrepits/test-vitest/node_modules/vite/node_modules/rollup/dist/es/shared/rollup.js:22299:32\r\n 6: 0x1053a9198 uv__work_done [/Users/asmerkin/.nvm/versions/node/v17.9.1/bin/node]\r\n\r\n⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯\r\n 7: 0x1053ac934 uv__async_io [/Users/asmerkin/.nvm/versions/node/v17.9.1/bin/node]\r\n 8: 0x1053be6ac uv__io_poll [/Users/asmerkin/.nvm/versions/node/v17.9.1/bin/node]\r\n 9: 0x1053acdc4 uv_run [/Users/asmerkin/.nvm/versions/node/v17.9.1/bin/node]\r\nSerialized Error: Object {\r\n \"watchFiles\": [Array],\r\n}\n```\n",[3070,3073],{"name":3071,"color":3072},"3.x","29bc7f",{"name":3020,"color":3021},15315,"Issues running Vitest within Nuxt3","2023-01-30T12:17:13Z","https://github.com/nuxt/nuxt/issues/15315",0.66799,{"labels":3080,"number":3084,"owner":3023,"repository":3023,"state":3050,"title":3085,"updated_at":3086,"url":3087,"score":3088},[3081,3082,3083],{"name":3071,"color":3072},{"name":3020,"color":3021},{"name":3060,"color":3061},14140,"hang when building app with `¿`","2023-01-19T17:25:54Z","https://github.com/nuxt/nuxt/issues/14140",0.670972,{"labels":3090,"number":3098,"owner":3023,"repository":3023,"state":3050,"title":3099,"updated_at":3100,"url":3101,"score":3102},[3091,3092,3095],{"name":3071,"color":3072},{"name":3093,"color":3094},"upstream","E8A36D",{"name":3096,"color":3097},"upstream-bug","B60205",13441,"`@nuxt/test-utils`: Using tests utils requires installing playwright","2023-01-19T16:56:17Z","https://github.com/nuxt/nuxt/issues/13441",0.67180735,{"description":3104,"labels":3105,"number":3110,"owner":3023,"repository":3023,"state":3050,"title":3111,"updated_at":3112,"url":3113,"score":3114},"### Environment\n\n```text\n------------------------------\n- Operating System: Darwin\n- Node Version: v22.14.0\n- Nuxt Version: 3.16.0\n- CLI Version: 3.22.5\n- Nitro Version: 2.11.5\n- Package Manager: bun@1.2.4\n- Builder: -\n- User Config: compatibilityDate, devtools\n- Runtime Modules: -\n- Build Modules: -\n------------------------------\n```\n\n### Reproduction\n\n```console\nbun create nuxt\n# fill out the wizard\nbun run --bun dev\n```\n\n### Describe the bug\n\nWhen running the nuxt dev-server with bun and `--bun` to run it _actually_ with bun, it hangs with the following error message:\n\n```\nAssertion failed: (napi_call_function(env, recv, callback, 3, args, &recv) == napi_ok), function fse_dispatch_event, file fsevents.c, line 151.\n```\n\n\n\n### Additional context\n\nI'm not sure, if this is the right repository to report this to, but I guess it's at least a good starting point.\n\nI noticed this when upgrading a project from 3.15.4 to 3.16.0 and was able to reproduce it when creating a new nuxt project. \n\n> [!NOTE] \n> Running the dev-server with `bun run dev` works, but It's then not actually using bun \n> as the JS runtime due to shebangs. \n> See the [upstream docs for bun run --bun](https://bun.sh/docs/cli/run#bun) for more \n> information.\n> Unfortunately this \"workaround\" does not work for me, since the project relies in bun native packages like `bun:sqlite`.\n\n\n### Logs\n\n```shell-script\nbun run --bun dev\n$ nuxt dev\nNuxt 3.16.0 with Nitro 2.11.5 nuxi 10:36:52 AM\n 10:36:52 AM\n ➜ Local: http://localhost:3000/\n ➜ Network: use --host to expose\n\n ➜ DevTools: press Shift + Option + D in the browser (v2.2.1) 10:36:52 AM\n\n✔ Vite client built in 20ms 10:36:53 AM\nAssertion failed: (napi_call_function(env, recv, callback, 3, args, &recv) == napi_ok), function fse_dispatch_event, file fsevents.c, line 151.\n```",[3106,3107],{"name":3020,"color":3021},{"name":3108,"color":3109},"possible regression","B90A42",31289,"Nuxt 3.16.0 - Unable to run the DEV Server with bun","2025-03-21T17:22:01Z","https://github.com/nuxt/nuxt/issues/31289",0.67322075,{"description":3116,"labels":3117,"number":3119,"owner":3023,"repository":3023,"state":3050,"title":3120,"updated_at":3121,"url":3122,"score":3123},"### Environment\n\n- Operating System: `Windows_NT`\n- Node Version: `v22.16.0`\n- Nuxt Version: `4.0.0`\n- CLI Version: `3.26.2`\n- Nitro Version: `2.12.0`\n- Package Manager: `npm@10.8.2`\n- Builder: `-`\n- User Config: `compatibilityDate`, `devtools`\n- Runtime Modules: `-`\n- Build Modules: `-`\n\n\n### Reproduction\n\n\u003Cimg width=\"580\" height=\"771\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4fed6772-2539-485e-8177-23b322997595\" />\n\n### Describe the bug\n\nWhen opening the client there is an error\n**Client**\n\u003Cimg width=\"1275\" height=\"428\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0f89fea5-3628-409b-94d4-a920a4b60cb2\" />\n**Server**\n\u003Cimg width=\"1066\" height=\"598\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ab927839-11f2-48dc-851b-3050955661b6\" />\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3118],{"name":3020,"color":3021},32659,"[nuxt cli, windows 10] Not able to run new project","2025-07-18T17:47:10Z","https://github.com/nuxt/nuxt/issues/32659",0.6748031,{"description":3125,"labels":3126,"number":3130,"owner":3023,"repository":3023,"state":3050,"title":3131,"updated_at":3132,"url":3133,"score":3134},"### Environment\n\n- Operating System: Windows_NT\r\n- Node Version: v18.12.1\r\n- Nuxt Version: 3.9.3\r\n- CLI Version: 3.10.0\r\n- Nitro Version: 2.8.1\r\n- Package Manager: pnpm@8.6.1\r\n- Builder: -\r\n- User Config: devtools, hooks, build, vite, runtimeConfig, modules, pinia, css, devServer, nitro\r\n- Runtime Modules: @vueuse/nuxt@10.5.0, nuxt-icon@0.6.8, @nuxt/devtools@1.0.8, @nuxtjs/device@3.1.0, nuxt-windicss@2.6.1, @pinia/nuxt@0.5.1, @pinia-plugin-persistedstate/nuxt@1.1.2, @formkit/auto-animate/nuxt@0.8.0\r\n- Build Modules: -\n\n### Reproduction\n\n无\n\n### Describe the bug\n\n我的路由:\r\n/wiki/viewku/zhishiku? 一个路径参数\r\n/wiki/viewku/zhishiku?/airtle? 两个路径参数\r\n\r\n\r\n访问的地址:\r\n/wiki/viewku/1/Folder_1\r\n\r\n我应该访问:/wiki/viewku/zhishiku?/airtle? \r\n我实际访问的:/wiki/viewku/zhishiku? \n\n### Additional context\n\n无\n\n### Logs\n\n```shell-script\n无\n```\n",[3127,3128,3129],{"name":3071,"color":3072},{"name":3020,"color":3021},{"name":3060,"color":3061},25858,"路由优先级问题","2024-04-14T14:05:45Z","https://github.com/nuxt/nuxt/issues/25858",0.6748735,["Reactive",3136],{},["Set"],["ShallowReactive",3139],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fOE9Wuk6UHqKVBavcntGNVgRB30nNhEfAJD0EOOm3sMU":-1},"/nuxt/test-utils/1106"]