Nuxt · Imports
NUXT0058Only shared utils and types are auto-imported
Flags nested shared autoimport assumption in Nuxt shared code before it leaks into runtime behavior.
vite-doctor/nuxtimportswarnSuggestion
Why it happens
Auto-imports are global within a project. Explicit names and imports prevent local code from shadowing framework composables.
Fix
Remove nested shared autoimport assumption, or move it to the Nuxt runtime/API that owns that behavior.
Example
Export nested shared utilities explicitly
Before
// shared/utils/nested/math.ts
export const add = (a: number, b: number) => a + b
After
// shared/utils/math.ts
export { add } from './nested/math'
Verify the fix
Run only this rule after editing so the report stays focused on the diagnostic you are closing:
pnpm nuxt doctor --rules nuxt/shared/no-nested-shared-autoimport-assumption