Nuxt · NUXT0019
Nested composables are not auto-imported by default
Flags nested autoimport assumption in Nuxt composables code before it leaks into runtime behavior.
nuxt/composables/no-nested-autoimport-assumptionsrc/rule-packs/nuxt/rules/nuxt/no-nested-autoimport-assumption.ts Upstream docs Run this rule
pnpm nuxt doctor --rules nuxt/composables/no-nested-autoimport-assumption
Why it matters
Auto-imports are global within a project. Explicit names and imports prevent local code from shadowing framework composables.
Recommended fix
Remove nested autoimport assumption, or move it to the Nuxt runtime/API that owns that behavior.
Useful links
Example
Export nested composables explicitly
Before
// app/composables/nested/useThing.ts
export function useThing() {
return useState('thing')
}
After
// app/composables/useThing.ts
export { useThing } from './nested/useThing'