Skip to content

Error on Nuxt Content for Static Site Generation : Document not found, overwrite this content with #not-found slot in <ContentDoc>.  #2726

Description

@dawadam

Environment

  • Operating System: Linux
  • Node Version: v20.15.1
  • Nuxt Version: 3.12.4
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: npm@10.7.0
  • Builder: -
  • User Config: compatibilityDate, devtools, modules, ssr, spaLoadingTemplate, hooks
  • Runtime Modules: vuetify-nuxt-module@0.16.1, @nuxt/content@2.13.2, @nuxt/image@1.7.0
  • Build Modules: -

Reproduction

Just install fresh nuxt and module @nuxt/content.
Add a markdown file in "content" folder.
Add a page in "pages" folder with <ContentDoc />
Add to nuxt config : ssr:false

  1. Run in dev : npm run dev
    Appreciate markdown render

  2. Generate npm run generate
    Check live npm run preview
    See error : Document not found, overwrite this content with #not-found slot in <ContentDoc>.

Describe the bug

When using Nuxt Content with markdown files.
It works fine in development and when I generate production builds.
The problem occurs when I try to disable SSR (Server-Side Rendering).
An error appears when loading a markdown file:

Document not found, overwrite this content with #not-found slot in <ContentDoc>.

Additional context

No response

Logs

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions