\n\n\nI already checked for some vitest import outside test files, but I didn't find it.\nI did something wrong, or is this a bug?\n\n\nedit: tests works fine",[],1343,"test-utils","Vitest failed to access its internal state","2025-07-01T09:10:36Z","https://github.com/nuxt/test-utils/issues/1343",0.66720194,{"labels":3199,"number":3203,"owner":3151,"repository":3151,"state":3152,"title":3204,"updated_at":3205,"url":3206,"score":3207},[3200,3201,3202],{"name":3145,"color":3146},{"name":3148,"color":3149},{"name":3182,"color":3183},14571,"Error: [nuxt] [request error] Context is not available","2023-01-19T17:37:15Z","https://github.com/nuxt/nuxt/issues/14571",0.6698508,{"description":3209,"labels":3210,"number":3223,"owner":3151,"repository":3151,"state":3152,"title":3224,"updated_at":3225,"url":3226,"score":3227},"### Environment\r\n\r\n- Operating System: `Linux`\r\n- Node Version: `v16.14.2`\r\n- Nuxt Version: `3.0.0-rc.8`\r\n- Package Manager: `npm@7.17.0`\r\n- Builder: `vite`\r\n- User Config: `imports`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/github-a2yc2x?file=app.vue\r\n\r\nnpm run previewBuild\r\n\r\nI think the key here is that I disabled auto imports and manually import from nuxt/app?\r\n\r\n### Describe the bug\r\n\r\nWhen using useRoute (which uses useNuxtApp), I get a `nuxt instance unavailable` when running with nuxt preview, but nuxt dev works just fine.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n```shell\r\nListening on http://0.0.0.0:3000/\r\nError: nuxt instance unavailable\r\n at Module.useNuxtApp (file:///home/projects/github-a2yc2x/.output/server/node_modules/nuxt/dist/app/nuxt.mjs:154:13)\r\n at Module.useRoute (file:///home/projects/github-a2yc2x/.output/server/node_modules/nuxt/dist/app/composables/router.mjs:33:15)\r\n at setup (file:///home/projects/github-a2yc2x/.output/server/chunks/app/server.mjs:3467:29)\r\n at _sfc_main.setup (file:///home/projects/github-a2yc2x/.output/server/chunks/app/server.mjs:3478:23)\r\n at callWithErrorHandling (file:///home/projects/github-a2yc2x/.output/server/chunks/handlers/renderer.mjs:2509:23)\r\n at setupStatefulComponent (file:///home/projects/github-a2yc2x/.output/server/chunks/handlers/renderer.mjs:8172:30)\r\n at setupComponent (file:///home/projects/github-a2yc2x/.output/server/chunks/handlers/renderer.mjs:8153:12)\r\n at renderComponentVNode (file:///home/projects/github-a2yc2x/.output/server/chunks/handlers/renderer.mjs:10505:17)\r\n at Object.ssrRenderComponent (file:///home/projects/github-a2yc2x/.output/server/chunks/handlers/renderer.mjs:10941:12)\r\n at default (file:///home/projects/github-a2yc2x/.output/server/chunks/app/server.mjs:3449:52)\r\n[Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n```\r\n",[3211,3212,3215,3218,3221],{"name":3145,"color":3146},{"name":3213,"color":3214},"workaround available","11376d",{"name":3216,"color":3217},"bug","d73a4a",{"name":3219,"color":3220},"vite","3574D1",{"name":3222,"color":3183},"🔨 p3-minor",14753,"`nuxt/app` is treated as an external","2023-01-19T17:39:44Z","https://github.com/nuxt/nuxt/issues/14753",0.6702901,{"labels":3229,"number":3232,"owner":3151,"repository":3151,"state":3152,"title":3233,"updated_at":3234,"url":3235,"score":3236},[3230,3231],{"name":3145,"color":3146},{"name":3148,"color":3149},14068,"Error thrown `nuxt instance unavailable`, when use `useState` after `useFetch` in composable","2023-04-14T15:53:02Z","https://github.com/nuxt/nuxt/issues/14068",0.6717483,{"labels":3238,"number":3241,"owner":3151,"repository":3151,"state":3152,"title":3242,"updated_at":3243,"url":3244,"score":3245},[3239,3240],{"name":3145,"color":3146},{"name":3216,"color":3217},14511,"windows regression (nuxt instance unavailable)","2023-01-19T17:36:14Z","https://github.com/nuxt/nuxt/issues/14511",0.67308253,{"labels":3247,"number":3252,"owner":3151,"repository":3151,"state":3152,"title":3253,"updated_at":3254,"url":3255,"score":3256},[3248,3251],{"name":3249,"color":3250},"documentation","5319e7",{"name":3145,"color":3146},14526,"Nuxt instance disappears after calling $fetch in a composable (nuxt instance unavailable)","2023-01-19T17:39:24Z","https://github.com/nuxt/nuxt/issues/14526",0.67428035,["Reactive",3258],{},["Set"],["ShallowReactive",3261],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f5OEZbxA8-tMXskbqZY-J1ycPNVaSNYjqGt1qf0hoXVU":-1},"/nuxt/test-utils/578"]