Nuxt · NUXT0051
Use NuxtPage instead of RouterView
Finds Nuxt routing code that should use the supported NuxtPage over routerview pattern instead.
nuxt/routing/prefer-nuxtpage-over-routerviewsrc/rule-packs/nuxt/rules/nuxt/prefer-nuxt-page-over-router-view.ts Upstream docs Run this rule
pnpm nuxt doctor --rules nuxt/routing/prefer-nuxtpage-over-routerview
Why it matters
NuxtPage connects routed views to Nuxt page metadata, transitions, keep-alive behavior, and Suspense handling.
Recommended fix
Render routed pages with <NuxtPage>.
Useful links
Example
Use NuxtPage over routerview
Before
<template>
<RouterView />
</template>
After
<template>
<NuxtPage />
</template>