content icon indicating copy to clipboard operation
content copied to clipboard

The missing Markdown file prevent pre-rendering process

Open Benbinbin opened this issue 2 years ago • 1 comments
trafficstars

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

Benbinbin avatar Sep 02 '23 04:09 Benbinbin

I'm having the same issue after upgrading to the latest Nuxt version (v3.8.1) and also had to revert back to v3.6.1 for the static generation to complete.

data-miner00 avatar Nov 13 '23 03:11 data-miner00