Layout component rendering is duplicated
Environment
- Operating System: Linux
- Node Version: v18.20.3
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: modules, content, compatibilityDate
- Runtime Modules: @nuxt/[email protected], @nuxt/[email protected]
- Build Modules: -
Reproduction
look: https://stackblitz.com/edit/github-5hgwqx?file=layouts%2Fcustom.vue,content%2Fabout.md,nuxt.config.ts,content%2Findex.md
Describe the bug
Layout component rendering is duplicated~
Additional context
No response
Logs
No response
About #1722
I tried it locally and found that even if app.vue does not exist, Nuxt seems to provide app.vue as a virtual file.
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
create app.vue in nuxt project, it works normally.
// app.vue
<template>
<NuxtPage />
</template>
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.