content icon indicating copy to clipboard operation
content copied to clipboard

Layout component rendering is duplicated

Open linpengteng opened this issue 1 year ago • 4 comments

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

image

Describe the bug

Layout component rendering is duplicated~

Additional context

No response

Logs

No response

linpengteng avatar Aug 20 '24 07:08 linpengteng

About #1722

linpengteng avatar Aug 20 '24 07:08 linpengteng

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>

linpengteng avatar Aug 20 '24 09:08 linpengteng

create app.vue in nuxt project, it works normally.

// app.vue

  <template>
      <NuxtPage />
  </template>

linpengteng avatar Aug 20 '24 09:08 linpengteng

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.

github-actions[bot] avatar Oct 20 '24 02:10 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Nov 20 '24 02:11 github-actions[bot]