Nuxt · Routing
NUXT0049Use Nuxt's useRoute in Nuxt app code
Finds Nuxt routing code that should use the supported nuxt useRoute pattern instead.
vite-doctor/nuxtroutingerrorAuto-fix
Why it happens
Nuxt's useRoute() wrapper synchronizes route updates with page rendering; the vue-router version can expose route state at a different time.
Fix
Use Nuxt’s auto-imported useRoute() inside Nuxt app code.
Example
Use Nuxt useRoute
Before
import { useRoute } from 'vue-router'
const route = useRoute()
After
const route = useRoute()
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/routing/prefer-nuxt-useroute