\r\n\u003CLazyLoginForm />\r\n\r\n\u003CRegisterForm />\r\n\u003CLazyRegisterForm />\r\n```\r\nThe directory with underscore (_) will not be included to the component name.\r\n\r\n### Additional information\r\n\r\n- [ ] Would you be willing to help implement this feature?\r\n- [ ] Could this feature be implemented as a module?\r\n\r\n### Final checks\r\n\r\n- [x] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\r\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[2984,2985,2986,2989],{"name":2943,"color":2944},{"name":2917,"color":2918},{"name":2987,"color":2988},"workaround available","11376d",{"name":2920,"color":2921},28894,"Feature Request for Nuxt 4 - Components Inside Pages Directory","2025-02-21T11:00:44Z","https://github.com/nuxt/nuxt/issues/28894",0.68519855,{"description":2996,"labels":2997,"number":3009,"owner":2907,"repository":2907,"state":2923,"title":3010,"updated_at":3011,"url":3012,"score":3013},"### Environment\r\n\r\n- Operating System: Windows_NT\r\n- Node Version: v16.19.0\r\n- Nuxt Version: 3.4.3\r\n- Nitro Version: 2.3.3\r\n- Package Manager: pnpm@8.5.0\r\n- Builder: vite\r\n- User Config: imports, modules, runtimeConfig, experimental, css, colorMode, vite, nitro, app, pwa, devtools\r\n- Runtime Modules: @vueuse/nuxt@10.1.2, @unocss/nuxt@0.51.8, @pinia/nuxt@0.4.9, @nuxtjs/color-mode@3.2.0, @vite-pwa/nuxt@0.0.7, @element-plus/nuxt@1.0.4, @vue-macros/nuxt@1.3.4, nuxt-vitest@0.6.12\r\n- Build Modules: -\r\n\r\n### Reproduction\r\n\r\nI configure the nuxt to scan the nested folder.\r\n\r\n// nuxt.config.ts\r\n```\r\nexport default defineNuxtConfig({\r\n imports: {\r\n dirs: [\r\n 'composables/*/index.{ts,js,mjs,mts}',\r\n ],\r\n },\r\n})\r\n```\r\n\r\n### Describe the bug\r\n\r\nI configure the nuxt to scan the nested folder, but it only work on the first startup, when I modify the code and save it, the hmr running and the nested module become undefined. \r\n\r\nIn my case, I have a module that exporting useProjectStore in `composables/store/project` file, It always report error `app.vue:22 Uncaught (in promise) ReferenceError: useProjectStore is not defined` when hmr update. This error will disappear when I import it explicit with `import { useProjectStore } from '@/composables/store/project'`.\r\n\r\nIn fact, I alsore-export the nested folder in `composables/index.ts` file, but it still not work when hmr update.\r\n// composables/index.ts\r\n```\r\nexport * from './store'\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\nchunk-YHV6M457.js:1381 [Vue warn]: Unhandled error during execution of setup function \r\n at \u003CApp key=3 > \r\n at \u003CNuxtRoot>\r\n```\r\n```\r\nchunk-YHV6M457.js:1381 [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core \r\n at \u003CApp key=3 > \r\n at \u003CNuxtRoot>\r\n```\r\n```\r\napp.vue:22 Uncaught (in promise) ReferenceError: useProjectStore is not defined\r\n at setup (app.vue:22:18)\r\n at callWithErrorHandling (chunk-YHV6M457.js:1580:18)\r\n at setupStatefulComponent (chunk-YHV6M457.js:7383:25)\r\n at setupComponent (chunk-YHV6M457.js:7346:36)\r\n at mountComponent (chunk-YHV6M457.js:6033:7)\r\n at processComponent (chunk-YHV6M457.js:6011:9)\r\n at patch (chunk-YHV6M457.js:5700:11)\r\n at patchSuspense (chunk-YHV6M457.js:2513:7)\r\n at Object.process (chunk-YHV6M457.js:2399:7)\r\n at patch (chunk-YHV6M457.js:5704:16)\r\n```\r\n```\r\n",[2998,2999,3000,3003,3006],{"name":2932,"color":2933},{"name":2904,"color":2905},{"name":3001,"color":3002},"windows","C681FD",{"name":3004,"color":3005},"needs reproduction","FBCA04",{"name":3007,"color":3008},"closed-by-bot","ededed",20838,"nested folder scanning is not work when hmr","2024-06-01T01:52:04Z","https://github.com/nuxt/nuxt/issues/20838",0.68783516,{"description":3015,"labels":3016,"number":3018,"owner":2907,"repository":2907,"state":2923,"title":3019,"updated_at":3020,"url":3021,"score":3022},"### Environment\n\n------------------------------\n- Operating System: Linux\n- Node Version: v18.20.3\n- Nuxt Version: 3.13.2\n- CLI Version: 3.14.0\n- Nitro Version: 2.9.7\n- Package Manager: npm@10.2.3\n- Builder: -\n- User Config: -\n- Runtime Modules: -\n- Build Modules: -\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-mag9gj-w7fy1u?file=layers%2Fauth%2Fapp%2Fcomposables%2Fservices%2FcomposableNested.ts,app%2Fcomponents%2Ftest-nesting%2FAppComponent.vue\n\n### Describe the bug\n\nIf you have a composable in a nested folder inside layers in Nuxt 4 (and possibly earlier?) then it will not be auto imported.\n\n\n\n`500 useComposableNested is not defined`\n\nSee reproduction above, if you comment out this line then the non-nested layer composable will run fine.\n\n_app/components/test-nesting/AppComponent.vue_\n```\n\u003Cscript setup lang=\"ts\">\n// const { isComposableNestedWorking } = useComposableNested();\n``` \n\n### Additional context\n\nI have tried adding this to `layers/auth/nuxt.config.ts`\n\n```\nimports: {\n dirs: ['~~/layers/auth/app/composables/services/**']\n}\n```\n\nMy unit tests also indicate this might also be breaking `asyncContext` in those layer nested composables. e.g they are unable to call `useNuxtApp()`, I get [nuxt] instance unavailable\n\n### Logs\n\n_No response_",[3017],{"name":2904,"color":2905},29709,"Nuxt 4 layers nested composables are not defined / auto imported","2024-11-20T19:49:42Z","https://github.com/nuxt/nuxt/issues/29709",0.68937075,{"labels":3024,"number":3027,"owner":2907,"repository":2907,"state":2923,"title":3028,"updated_at":3029,"url":3030,"score":3031},[3025,3026],{"name":2932,"color":2933},{"name":2904,"color":2905},14576,"RC-8 composables auto-imports regression for /composables/\u003Cfolder>/index.ts","2023-01-19T17:37:22Z","https://github.com/nuxt/nuxt/issues/14576",0.6920959,["Reactive",3033],{},["Set"],["ShallowReactive",3036],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f4NfIgHJzx83yVwY4lLL9OykfH-csl0W-oExUq6kiaQE":-1},"/nuxt/nuxt/25831"]