Skip to content

The missing Markdown file prevent pre-rendering process #2283

Open
@Benbinbin

Description

@Benbinbin

Environment


  • Operating System: Windows_NT
  • Node Version: v18.16.0
  • Nuxt Version: 3.7.0
  • CLI Version: 3.7.3
  • Nitro Version: 2.6.2
  • Package Manager: [email protected]
  • Builder: Vite
  • User Config: typescript, modules
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-2ywdlb

Describe the bug

In the minimal reproduction I want to test the multiple pages, so create two page component page/index.vue and page/about.vue, and remove the app.vue at root

and in the content file I remove the content/about.md just remain the content/index.md

because missing the content/about.md file, so I add the #not-found slot for <ContentDoc> in the page/about.vue

after run the npm run generate it throw an error at the prerendering routes with crawler process

error

Additional context

I try to downgrade the Nuxt verion to fix this prerender problem.

I finally find that the Nuxt v3.6.1 just work, it can finish the prerender prosses and generate all the files to deploy as a static website, although it still throw the error warning.

Maybe some pre-rendering rules of Nuxt engine change when the version update to trigger this problem, but I think this question is more specific to the use cases of Nuxt Content, so I leave the issue here

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions