\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n````\r\n\r\nDashboardIndex is in the `components/Dashboard/Index.vue`\r\n\r\n````\r\n\r\n\u003Cscript lang=\"ts\">\r\nexport default {\r\n name: \"DashboardIndex\" \r\n};\r\n\u003C/script>\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n Index\r\n \u003C/div>\r\n\u003C/template>\r\n````\r\n\r\n\r\n### Describe the bug\r\n\r\nI am trying to automatically import a component but for some reason nuxt can't find it.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[1998,2001],{"name":1999,"color":2000},"3.x","29bc7f",{"name":2002,"color":2003},"pending triage","E99695",12388,"closed","[Vue warn]: Failed to resolve component.","2023-01-19T16:18:49Z","https://github.com/nuxt/nuxt/issues/12388",0.6772903,{"description":2011,"labels":2012,"number":2015,"owner":1988,"repository":1988,"state":2005,"title":2016,"updated_at":2017,"url":2018,"score":2019},"### Environment\r\n\r\n- Operating System: `Darwin`\r\n- Node Version: `v20.10.0`\r\n- Nuxt Version: `3.9.1`\r\n- CLI Version: `3.10.0`\r\n- Nitro Version: `2.8.1`\r\n- Package Manager: `npm@10.2.3`\r\n- Builder: `-`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n\r\n\r\n### Reproduction\r\n\r\nhttps://stackblitz.com/edit/github-yqhwiw?file=src%2Fruntime%2Fcomposables%2FuseSomeComposable.ts,src%2Fruntime%2Fcomponents%2FSomeComponent.vue,src%2Fmodule.ts,playground%2Fapp.vue\r\n\r\n### Describe the bug\r\n\r\nI am trying to use provide/inject inside a Module it returns `undefined` and in the console it logs `[Vue warn]: injection 'key' not found`.\r\n\r\nruntime/components/SomeComponent.vue\r\n```vue\r\n\u003Cscript lang=\"ts\" setup>\r\nimport { provide } from 'vue';\r\n\r\nprovide('message', 'hello nuxt');\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003Cdiv>XSome Component\u003C/div>\r\n\u003C/template>\r\n```\r\n\r\nruntime/composables/useSomeComposable.ts\r\n```ts\r\nimport { inject } from 'vue';\r\n\r\nconst useSomeComposable = () => {\r\n const message = inject('message');\r\n\r\n function run() {\r\n console.log('inect message', message);\r\n\r\n return message;\r\n }\r\n\r\n // ....rest of composables\r\n\r\n return { run };\r\n};\r\n\r\nexport default useSomeComposable;\r\n\r\n```\r\n\r\nplayground/app.vue\r\n```vue\r\n\u003Cscript lang=\"ts\" setup>\r\nimport { XSomeComponent } from '#components';\r\nimport { useSomeComposable } from '#imports';\r\n\r\nconst { run } = useSomeComposable();\r\n\r\nconst message = run();\r\n\u003C/script>\r\n\r\n\u003Ctemplate>\r\n \u003Cdiv>\r\n \u003CXSomeComponent />\r\n \u003Cpre>\r\n {{ message }}\r\n \u003C/pre>\r\n \u003C/div>\r\n\u003C/template>\r\n\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\n✔ Vite server hmr 6 files in 61.55ms\r\n[Vue warn]: injection \"message\" not found.\r\ninect message undefined\r\n```\r\n",[2013,2014],{"name":1999,"color":2000},{"name":2002,"color":2003},25194,"[Vue warn]: injection 'key' not found when developing a module","2024-07-05T08:52:14Z","https://github.com/nuxt/nuxt/issues/25194",0.68322206,{"description":2021,"labels":2022,"number":2025,"owner":1988,"repository":1988,"state":2005,"title":2026,"updated_at":2027,"url":2028,"score":2029},"### Environment\n\nNuxt 3 last\n\n### Reproduction\n\nhttps://github.com/n4an/nuxt-error-7\r\n\r\nnpm i\r\nnpm run dev\n\n### Describe the bug\n\nFailed to resolve component: NuxtPage\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]: resolveComponent can only be used in render() or setup().\r\n[Vue warn]: Component \u003CAnonymous> is missing template or render function.\r\n\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2023,2024],{"name":1999,"color":2000},{"name":2002,"color":2003},15243,"Failed to resolve component: NuxtPage","2023-01-19T17:46:40Z","https://github.com/nuxt/nuxt/issues/15243",0.6902405,{"labels":2031,"number":2037,"owner":1988,"repository":1988,"state":2005,"title":2038,"updated_at":2039,"url":2040,"score":2041},[2032,2033,2034],{"name":1999,"color":2000},{"name":2002,"color":2003},{"name":2035,"color":2036},"needs reproduction","FBCA04",13933,"[request error] useHead is not defined","2023-01-19T17:09:59Z","https://github.com/nuxt/nuxt/issues/13933",0.6911305,{"labels":2043,"number":2046,"owner":1988,"repository":1988,"state":2005,"title":2047,"updated_at":2048,"url":2049,"score":2050},[2044,2045],{"name":1999,"color":2000},{"name":2002,"color":2003},13890,"useHead cannot be used in async functions","2023-01-19T17:13:42Z","https://github.com/nuxt/nuxt/issues/13890",0.69535583,{"description":2052,"labels":2053,"number":2061,"owner":1988,"repository":1988,"state":2005,"title":2062,"updated_at":2063,"url":2064,"score":2065},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v18.18.0\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.2.3\r\n- Builder: -\r\n- User Config: devtools, modules\r\n- Runtime Modules: @nuxt/test-utils/module@3.12.1\r\n- Build Modules: -\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-aygvkp?file=components%2Fcomponent.nuxt.test.ts\r\n\r\nOpen the stackblitz and notice that the editor complains:\r\n\r\n```\r\nCannot find name 'SomeComponent'. Did you mean 'component'?(2552)\r\ncomponent.nuxt.test.ts(10, 9): 'component' is declared here.\r\n```\r\n\r\nRun the test suite and notice that the tests fail with:\r\n\r\n```\r\nReferenceError: SomeComponent is not defined\r\n```\n\n### Describe the bug\n\nI have followed the instructions on https://nuxt.com/docs/getting-started/testing and the way I read [this section](https://nuxt.com/docs/getting-started/testing#%EF%B8%8F-helpers) `SomeComponent` should be auto-imported into that test.\r\n\r\nThe test suite runs successfully and all tests pass if I uncomment the SomeComponent import on line 4 but according to the example in the doc, that isn't necessary. Also, when I uncomment line 4, I get the following error:\r\n\r\n```\r\nCannot find module './SomeComponent' or its corresponding type declarations.(2307)\r\n```\r\n\r\nCompare this to a similar import in `SomeWrapperComponent.vue` which does not cause the error.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2054,2057,2060],{"name":2055,"color":2056},"documentation","5319e7",{"name":2058,"color":2059},"good first issue","fbca04",{"name":1999,"color":2000},27120,"docs: improve testing component example to avoid auto import misunderstanding","2024-05-11T09:00:34Z","https://github.com/nuxt/nuxt/issues/27120",0.7035431,{"description":2067,"labels":2068,"number":2071,"owner":1988,"repository":1988,"state":2005,"title":2072,"updated_at":2073,"url":2074,"score":2075},"### Environment\n\n```\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v16.20.0\r\n- Nuxt Version: 3.6.5\r\n- Nitro Version: 2.5.2\r\n- Package Manager: npm@9.4.2\r\n- Builder: vite\r\n- User Config: -\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n```\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-starter-dfuuoo?file=app.vue\n\n### Describe the bug\n\n`computed()` inside `useHead()` cannot access nuxt context like `useState()`\r\n\r\nhere is error:\r\n```\r\n[nuxt] A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug. Find out more at `https://nuxt.com/docs/guide/concepts/auto-imports#using-vue-and-nuxt-composables`.\r\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2069,2070],{"name":1999,"color":2000},{"name":2002,"color":2003},22590,"useHead cannot access nuxt context","2023-08-11T09:27:13Z","https://github.com/nuxt/nuxt/issues/22590",0.704278,{"description":2077,"labels":2078,"number":2081,"owner":1988,"repository":1988,"state":2005,"title":2082,"updated_at":2083,"url":2084,"score":2085},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v16.14.2\r\n- Nuxt Version: 3.4.3\r\n- Nitro Version: 2.4.0\r\n- Package Manager: npm@7.17.0\r\n- Builder: vite\r\n- User Config: modules\r\n- Runtime Modules: ./modules/test-module\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-hcx5za\n\n### Describe the bug\n\nIf `pages/` directory is not created or is empty and all of the pages are defined using `extendPages` in module, it throws warning:\r\n\r\n`Create a Vue component in the pages/ directory to enable \u003CNuxtPage>`\r\n\r\nand shows blank page.\r\n\r\nIf you create e.g. `pages/test.vue`, warning goes away and displays the intended page.\n\n### Additional context\n\nAlso this warning goes away, if I create `app/router.options.ts` file.\n\n### Logs\n\n_No response_",[2079,2080],{"name":1999,"color":2000},{"name":2002,"color":2003},20801,"\u003CNuxtPage> info message does not look up for module pages","2023-05-15T12:47:31Z","https://github.com/nuxt/nuxt/issues/20801",0.7091783,{"labels":2087,"number":2090,"owner":1988,"repository":1988,"state":2005,"title":2091,"updated_at":2092,"url":2093,"score":2094},[2088,2089],{"name":1999,"color":2000},{"name":2002,"color":2003},13527,"Nuxt3 not importing component","2023-01-19T16:58:43Z","https://github.com/nuxt/nuxt/issues/13527",0.709532,["Reactive",2096],{},["Set"],["ShallowReactive",2099],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"oGkctSxSetvjtsIrAhpJg1UWO9J1OqeQJcF6hifQDpE":-1},"/nuxt/test-utils/570"]