Skip to content

docs: add legacy-peer-deps note for MDX installation - #39515

Open
nikhilkalburgi45 wants to merge 1 commit into
gatsbyjs:masterfrom
nikhilkalburgi45:fix-mdx-docs
Open

docs: add legacy-peer-deps note for MDX installation#39515
nikhilkalburgi45 wants to merge 1 commit into
gatsbyjs:masterfrom
nikhilkalburgi45:fix-mdx-docs

Conversation

@nikhilkalburgi45

Copy link
Copy Markdown

Description

I added a troubleshooting note to the MDX routing documentation. Many users using newer versions of npm (v7+) encounter "ERESOLVE unable to resolve dependency tree" errors during the installation of MDX dependencies. This PR provides the specific command using the --legacy-peer-deps flag to help users get past this common installation blocker.

Documentation

  • Updated docs/docs/how-to/routing/mdx.md to include the troubleshooting note and the alternative installation command.

Tests

N/A - This is a documentation-only change. I verified the markdown formatting in my local editor.

Related Issues

Fixes #38928

@gatsbot gatsbot Bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

React Peer Dependency Issue with gatsby-plugin-mdx

1 participant