\nI'd really appreciate it if the team considers a more flexible and intuitive API.\n\n### Additional information\n\n- [ ] 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).",[3019,3022],{"name":3020,"color":3021},"enhancement","8DEF37",{"name":3023,"color":3024},"pending triage","E99695",29275,"nuxt","open","Better API for Auto Imports Customization","2024-10-08T08:40:01Z","https://github.com/nuxt/nuxt/issues/29275",0.6100701,{"description":3033,"labels":3034,"number":3042,"owner":3026,"repository":3026,"state":3027,"title":3043,"updated_at":3044,"url":3045,"score":3046},"For example if I need to make a repo with multiple Nuxt apps that share the same root folder, plugins, middlewares, but still have some differences. With Nuxt 3 I have no choice but to use symbolic links or add empty js files with just `import` `export`. Is there any way to disable auto imports for things like plugins / middleware? Generally make it more configurable? Otherwise people will have to do any sort of tricks to do something more custom from basic Nuxt structure.\n\n_Originally posted by @vedmant in https://github.com/nuxt/framework/discussions/9681_\n ",[3035,3036,3039],{"name":3020,"color":3021},{"name":3037,"color":3038},"workaround available","11376d",{"name":3040,"color":3041},"layers","006B75",15641,"A way to disable plugins / middleware auto-loading","2024-06-30T11:09:47Z","https://github.com/nuxt/nuxt/issues/15641",0.6473532,{"description":3048,"labels":3049,"number":3054,"owner":3026,"repository":3026,"state":3027,"title":3055,"updated_at":3056,"url":3057,"score":3058},"* might also be worth turning this feature off - for example if there _is_ a plugins array in `nuxt.config`",[3050,3051],{"name":3020,"color":3021},{"name":3052,"color":3053},"app","17512D",11025,"Support `.dev.` extension for plugin auto-import","2024-06-30T11:10:43Z","https://github.com/nuxt/nuxt/issues/11025",0.6618382,{"description":3060,"labels":3061,"number":3063,"owner":3026,"repository":3026,"state":3064,"title":3065,"updated_at":3066,"url":3067,"score":3068},"### Environment\n\n------------------------------\n- Operating System: Linux\n- Node Version: v18.20.3\n- Nuxt Version: 3.15.2\n- CLI Version: 3.20.0\n- Nitro Version: 2.10.4\n- Package Manager: pnpm@8.15.6\n- Builder: -\n- User Config: compatibilityDate, devtools, imports\n- Runtime Modules: -\n- Build Modules: -\n------------------------------\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-starter-bdtjdbsp?file=pages%2Findex.vue\n\n### Describe the bug\n\nDisabling auto imports in `nuxt.config.ts` like that:\n```ts\n imports: {\n autoImport: false,\n },\n```\n\nDoesn't do much. App continues to work even without explicit component imports.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3062],{"name":3023,"color":3024},30748,"closed","Disabling auto imports doesn't work","2025-01-25T07:49:26Z","https://github.com/nuxt/nuxt/issues/30748",0.61697507,{"description":3070,"labels":3071,"number":3078,"owner":3026,"repository":3026,"state":3064,"title":3079,"updated_at":3080,"url":3081,"score":3082},"### Describe the feature\n\nHello, thank you very much for the product you make. \r\n\r\nWhen working with `nuxt`, I don't really like the concept of auto-imports and would like to disable it. I have several reasons why I want to do this:\r\n1) Auto imports are secret magic. It’s not entirely clear what you are importing and from where\r\n2) I use `jest` in my project and there are big problems with it when setting up mocks for `#imports`\r\n\r\nI saw a previous [issue](https://github.com/nuxt/nuxt/issues/14505) on this topic, but as I see it did not end in anything. Currently, there are settings to disable auto-imports of components, but there are no settings to disable other auto-imports: `vue` re-export, `@unhead/vue` re-export, `composables` folder re-export in a project, `utils` folder re-export in a project.\r\n\r\nI would like to have some setting that allows me to disable all re-exports from `#imports` except `nuxt` re-exports.\n\n### Additional information\n\n- [ ] 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).",[3072,3075],{"name":3073,"color":3074},"documentation","5319e7",{"name":3076,"color":3077},"3.x","29bc7f",26525,"Add feature toggle to disable autoImports","2025-01-10T11:30:09Z","https://github.com/nuxt/nuxt/issues/26525",0.6205732,{"description":3084,"labels":3085,"number":3089,"owner":3026,"repository":3026,"state":3064,"title":3090,"updated_at":3091,"url":3092,"score":3093},"### Describe the feature\n\nThis is a follow up from same Nitro issue: https://github.com/nitrojs/nitro/issues/2232\nNitro is going to make auto-imports an opt-in feature. I think all arguments from this issue also applies to Nuxt, but here my summary:\n\nI would love auto imports being fully disabled by default + all the docs to use explicit imports. Personally I see no benefits of having auto imports, but a lots of downsides. E.g. at the moment it is not clear to developers what actually comes from H3, what from Nitro, what from Nuxt and what from Vue. Nowadays imports are added by the IDE automatically anyway, so every dev should already have an \"auto imports\" experience.\n\nBtw. I failed multiple times disabling auto imports within a Nuxt 3 app, as well as in a Nitro 2 app: https://github.com/nitrojs/nitro/issues/2305\n\nI really hope Nuxt 4 will fully opt-out auto imports, docs will be updated to show imports and Nuxi sets opt-out as a default. Within Nuxt 5, auto-imports could be disabled by default and just be an opt-in.\n\n### Additional information\n\n- [ ] 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).",[3086],{"name":3087,"color":3088},"discussion","538de2",29923,"[Discussion] Make auto-imports optional by default","2025-05-17T16:47:18Z","https://github.com/nuxt/nuxt/issues/29923",0.6210487,{"labels":3095,"number":3098,"owner":3026,"repository":3026,"state":3064,"title":3099,"updated_at":3100,"url":3101,"score":3102},[3096,3097],{"name":3020,"color":3021},{"name":3076,"color":3077},14505,"allow disabling auto imports","2024-04-16T07:56:52Z","https://github.com/nuxt/nuxt/issues/14505",0.62250245,{"description":3104,"labels":3105,"number":3111,"owner":3026,"repository":3026,"state":3064,"title":3112,"updated_at":3113,"url":3114,"score":3115},"### Describe the feature\n\ndisable certain module from auto import or we need to fully disable it ? we only like nuxt and vue3 autoimport not rest other library which carry vast amount of module #they are uncessary be using auto import feature to reduce the speed for startup application as reduce time on development mode \r\nfor example with ur quasar auto import component \r\n\r\n\r\n\n\n### Additional information\n\n- [ ] 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).",[3106,3107,3108],{"name":3076,"color":3077},{"name":3023,"color":3024},{"name":3109,"color":3110},"needs reproduction","FBCA04",24604,"auto import disable for for certain library ","2023-12-11T12:00:18Z","https://github.com/nuxt/nuxt/issues/24604",0.6235533,{"description":3117,"labels":3118,"number":3126,"owner":3026,"repository":3026,"state":3064,"title":3127,"updated_at":3128,"url":3129,"score":3130},"### Environment\r\n\r\n```\r\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v18.16.0\r\n- Nuxt Version: 3.6.5\r\n- Nitro Version: 2.5.2\r\n- Package Manager: npm@9.5.1\r\n- Builder: vite\r\n- User Config: devtools, imports\r\n- Runtime Modules: -\r\n- Build Modules: -\r\n------------------------------\r\n```\r\n\r\n### Reproduction\r\n\r\nhttps://github.com/DerZade/nuxt-auto-import-ts\r\n\r\n1. `nuxi init`\r\n1. set in nuxt config: \r\n ```ts\r\n imports: {\r\n autoImport: false\r\n }\r\n ```\r\n1. Use any utility that is normally auto imported. In my example I added a very simple server route:\r\n ```ts\r\n export default defineEventHandler(async event => {\r\n return 'successful';\r\n });\r\n ```\r\n1. Run `npx nuxi typecheck` -> does not report any errors\r\n1. Run with `npm run dev` to get `defineEventHandler is not defined`\r\n\r\n\r\n### Describe the bug\r\n\r\nTS does not report errors correctly, when disabling auto imports by setting `imports.autoImports` in the nuxt config to `false`.\r\n\r\nWhile running with auto imports disabled you run into `X is not defined` errors, although neither VSCode nor `nuxt typecheck` returns any type errors.\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$ npm run dev\r\nNuxi 3.6.5 10:13:03 AM\r\nNuxt 3.6.5 with Nitro 2.5.2 10:13:03 AM\r\n 10:13:03 AM\r\n > Local: http://localhost:3000/ \r\n > Network: http://172.25.18.44:3000/\r\n\r\n✔ Nuxt Devtools is enabled v0.7.2 (experimental) 10:13:04 AM\r\nℹ Vite client warmed up in 1223ms 10:13:06 AM\r\n✔ Nitro built in 601 ms nitro 10:13:06 AM\r\n[nitro] [uncaughtException] ReferenceError: defineEventHandler is not defined 10:13:06 AM\r\n at file:///home/jonas/projects/temp/nuxt-auto-impoert-ts/.nuxt/dev/index.mjs:790:18\r\n at ModuleJob.run (node:internal/modules/esm/module_job:194:25)\r\n```",[3119,3120,3123],{"name":3023,"color":3024},{"name":3121,"color":3122},"nitro","bfd4f2",{"name":3124,"color":3125},"possible regression","B90A42",22422,"TS does not report errors correctly, when disabling auto imports","2025-05-29T09:17:03Z","https://github.com/nuxt/nuxt/issues/22422",0.630432,{"labels":3132,"number":3135,"owner":3026,"repository":3026,"state":3064,"title":3136,"updated_at":3137,"url":3138,"score":3139},[3133,3134],{"name":3020,"color":3021},{"name":3076,"color":3077},12887,"Allow disabling automatic plugin imports","2025-02-26T12:12:45Z","https://github.com/nuxt/nuxt/issues/12887",0.6314703,["Reactive",3141],{},["Set"],["ShallowReactive",3144],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f5n3zyi1KWIV4AAzW4oi44jUwManqdSRUjXuvFc4QMv4":-1},"/nuxt/nuxt/31889"]