Nuxt · Imports
NUXT0064Avoid VueUse names that collide with Nuxt auto-imports
Flags nuxt auto import collision in VueUse project code before it leaks into runtime behavior.
vite-doctor/vueuseimportswarnSuggestion
Why it happens
Auto-imports are global within a project. Explicit names and imports prevent local code from shadowing framework composables.
Fix
Remove nuxt auto import collision, or move it to the VueUse runtime/API that owns that behavior.
Example
Alias VueUse Nuxt collisions
Before
import { useFetch } from '@vueuse/core'
const response = useFetch('/api/user')
After
import { useFetch as useVueUseFetch } from '@vueuse/core'
const response = useVueUseFetch('/api/user')
Verify the fix
Run only this rule after editing so the report stays focused on the diagnostic you are closing:
pnpm nuxt doctor --rules vueuse/no-nuxt-auto-import-collision