Nuxt · Routing
NUXT0051Use NuxtPage instead of RouterView
Finds Nuxt routing code that should use the supported NuxtPage over routerview pattern instead.
vite-doctor/nuxtroutingerrorAuto-fix
Why it happens
NuxtPage connects routed views to Nuxt page metadata, transitions, keep-alive behavior, and Suspense handling.
Fix
Render routed pages with <NuxtPage>.
Example
Use NuxtPage over routerview
Before
<template>
<RouterView />
</template>
After
<template>
<NuxtPage />
</template>
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-nuxtpage-over-routerview