Nuxt · NUXT0019

Nested composables are not auto-imported by default

Flags nested autoimport assumption in Nuxt composables code before it leaks into runtime behavior.
NUXT0019vite-doctor/nuxtimportswarnSuggestion

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.

Remove nested autoimport assumption, or move it to the Nuxt runtime/API that owns that behavior.

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'
Copyright © 2026