Nuxt · Routing

NUXT0099Render 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.

Why it happens

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.

Fix

Wrap <NuxtPage /> in <NuxtLayout> in app.vue, or remove the unused layouts.

Example

Render layouts from app.vue

Before

<!-- app/layouts/default.vue exists -->
<template>
  <NuxtPage />
</template>

After

<template>
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
</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/layouts/app-renders-nuxtlayout
Copyright © 2026