NUXT0100Give transitioned pages and layouts a single root node
Why it happens
Nuxt wraps pages in a <Transition> when a page transition is on, and layouts when a layout transition is on. A <Transition> can only animate a single element, so a page with several root nodes, or a text root, does not animate when you navigate to or from it. Vue keeps template comments in development, so a comment next to the root element also turns the page into a fragment there. Nuxt reports this in development as NUXT_E4004 for pages and NUXT_E4002 for layouts. Both are off by default (app.pageTransition and app.layoutTransition default to false), so pages without a transition are not reported.
Fix
Wrap the template in a single root element, such as a <div>, and move comments inside it.
Example
Give a transitioned page one root element
Before
<!-- nuxt.config.ts sets app: { pageTransition: { name: 'page' } } -->
<template>
<h1>Users</h1>
<UserList />
</template>
After
<template>
<div>
<h1>Users</h1>
<UserList />
</div>
</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/pages/single-root-node