Nuxt · Architecture

NUXT0044Place app directories under app/

Finds Nuxt project code that should use the supported app directory placement pattern instead.

Why it happens

Nuxt 4 scans app code under app/. Keeping legacy top-level directories can make ownership unclear and diverge from the current directory contract.

Fix

Use the Nuxt-supported app directory placement pattern instead.

Example

Place app files in app directory

Before

pages/index.vue
components/AppHeader.vue

After

app/pages/index.vue
app/components/AppHeader.vue

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/project/prefer-app-directory-placement
Copyright © 2026