Skip to content

Support for Next.js 16 #7

Description

@Shajeel-Afzal

Support for Next.js 16

Hi team,

I'm trying to integrate the blog-template into an existing Next.js 16 project and running into compatibility issues.

Environment

  • Next.js: 16.0.6
  • fumadocs-mdx: 11.6.10
  • fumadocs-core: 15.6.2

Issue

When building with Next.js 16, I encounter the following error:

Cannot find module '.source/source.config.mjs'

The current createMDXSource(docs, meta) pattern from fumadocs-mdx doesn't seem to work correctly with Next.js 16's build process.

Steps to reproduce

  1. Create a Next.js 16 project
  2. Follow the blog-template integration steps
  3. Run yarn build

Expected behavior

The blog template should build successfully with Next.js 16.

Possible solution

Based on fumadocs documentation, newer versions may use docs.toFumadocsSource() instead of createMDXSource(docs, meta), but this doesn't appear to be compatible with the current generated types.

Would appreciate guidance on the recommended approach for Next.js 16 compatibility, or an update to support it.

Thanks!

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