Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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-remotefrom 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", |
There was a problem hiding this comment.
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:
- Upgrade Next.js to version 13.4 or later to support next-mdx-remote 6.0.0, or
- Use next-mdx-remote 4.4.1 (the latest v4 release) which is compatible with Next.js 13.1.1
| "next-mdx-remote": "6.0.0", | |
| "next-mdx-remote": "4.4.1", |
No description provided.