Skip to content

mdx-remote#975

Open
alexandru-paduraru wants to merge 5 commits intomainfrom
remove-genezio
Open

mdx-remote#975
alexandru-paduraru wants to merge 5 commits intomainfrom
remove-genezio

Conversation

@alexandru-paduraru
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
material-tailwind Ready Ready Preview, Comment Feb 26, 2026 7:22pm

Request Review

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the next-mdx-remote package from version 4.2.0 to 6.0.0 and adds the necessary transpilePackages configuration to support the new version. The upgrade skips a major version (v5) and introduces significant changes to how the package handles MDX content rendering in the documentation pages.

Changes:

  • Upgraded next-mdx-remote from 4.2.0 to 6.0.0
  • Added transpilePackages: ["next-mdx-remote"] to Next.js configuration for ESM compatibility

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Updates next-mdx-remote dependency from 4.2.0 to 6.0.0
next.config.js Adds transpilePackages configuration for next-mdx-remote to support the new version's ESM structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

package.json Outdated
"mdx-observable": "0.2.0",
"next": "13.1.1",
"next-mdx-remote": "4.2.0",
"next-mdx-remote": "6.0.0",
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upgrade to next-mdx-remote 6.0.0 is incompatible with the current Next.js version. According to the next-mdx-remote documentation, version 6.0.0 requires Next.js 13.4 or later, but this project is using Next.js 13.1.1 (see line 61 in package.json). This version mismatch could lead to runtime errors or unexpected behavior.

To resolve this, you should either:

  1. Upgrade Next.js to version 13.4 or later to support next-mdx-remote 6.0.0, or
  2. Use next-mdx-remote 4.4.1 (the latest v4 release) which is compatible with Next.js 13.1.1
Suggested change
"next-mdx-remote": "6.0.0",
"next-mdx-remote": "4.4.1",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants