Nuxt · NUXT0099
Render NuxtLayout when the app has layouts
Finds a custom app component that never renders `<NuxtLayout>` while the app has registered layouts. Doctor follows components and pages reachable from the app, not unused components. It uses the prepared layout inventory when available and stays quiet when it cannot establish which layouts Nuxt registers or follow a render target. Nuxt's built-in app already renders the layout.
nuxt/layouts/app-renders-nuxtlayoutsrc/rule-packs/nuxt/rules/nuxt/app-renders-nuxt-layout.ts Upstream docs Run this rule
pnpm nuxt doctor --rules nuxt/layouts/app-renders-nuxtlayout
Why it matters
Nuxt renders layouts only through <NuxtLayout>. Without it, layouts/default.vue and every layout a page selects with definePageMeta({ layout }) are ignored, so pages render without their header, navigation, or wrapper. Nuxt reports this in development as NUXT_E4007: its check-if-layout-used plugin warns when layouts exist but no <NuxtLayout> was rendered.
Recommended fix
Wrap <NuxtPage /> in <NuxtLayout> in app.vue, or remove the unused layouts.
Useful links
Example
Render layouts from app.vue
Before
<!-- app/layouts/default.vue exists -->
<template>
<NuxtPage />
</template>
After
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>