Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/roadbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@mdx-js/react": "^2.3.0",
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

This upgrade bumps @mdx-js/loader from version 2.3.0 to 3.1.1, which is a major version change. However, @mdx-js/react remains at version 2.3.0.

According to MDX documentation, @mdx-js/loader v3 and @mdx-js/react v2 have compatibility issues. The loader v3 uses a new runtime architecture that expects @mdx-js/react v3. This mismatch can cause runtime errors when rendering MDX content.

You should also update @mdx-js/react to version 3.x to match the loader version. Update the package.json to use "@mdx-js/react": "^3.0.0" or later.

Suggested change
"@mdx-js/react": "^2.3.0",
"@mdx-js/react": "^3.0.0",

Copilot uses AI. Check for mistakes.
"@mdx-js/loader": "^2.3.0",
"@mdx-js/loader": "^3.1.1",
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

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

The @mdx-js/loader package is listed in both dependencies and devDependencies. Since this is a build-time tool used by Next.js/webpack to process MDX files during the build step, it should only be in devDependencies. Remove it from the dependencies section to avoid including unnecessary build tools in production.

Suggested change
"@mdx-js/loader": "^3.1.1",

Copilot uses AI. Check for mistakes.
"@blackroad/ui": "workspace:*"
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/node": "^20.4.2",
"typescript": "^5.1.6",
"@next/mdx": "13.4.12",
"@mdx-js/loader": "^2.3.0"
"@mdx-js/loader": "^3.1.1"
}
}
Loading
Loading