-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Peer Dependency Issue with gatsby-plugin-mdx #38928
Comments
If it matters, I updated to the LTS version of node and this still happens (20.12.2 as of the time I write this) |
Keeping this alive. Still having to do this every single time you add a new dependency |
Same issue I just created a new project also on LTS version, also tried with v18 facing same error |
I'm also running into this problem. |
This has been a longstanding issue with running MDX on Gatsby for way too long now :| At this point I guess I'll just create a command alias to append --legacy-peer-deps automatically from now on v_v Feels janky to use. |
This solved me the issue: |
Related PR: #39009 |
Still having this issue, any reason the pr hasn't been merged? |
keeping this issue alive. It looks like the build fails in PR #39009 so it still hasn't been merged. |
Same 😢 |
+1 I'm awaiting a resolution. I'm unsure how to contribute to a fix. It seems like a 10 minute problem for a Gatsbyjs core contributor, but a potential rabbit hole for others. |
Preliminary Checks
Description
I see bug reports that have been converted to discussions saying that running
npm install --legacy-peer-deps
is the solution for this issue.If that is, indeed, the official response and solution for these issues, please update the documentation to say that using
gatsby-plugin-mdx
requires the use of legacy-peer-deps.Honestly, I'm surprised this isn't considered an actual bug to fix. The default behavior to install apps is running
npm install
. Using the --legacy-peer-deps option should not be considered the official solution.Reproduction Link
https://github.com/gatsbyjs/gatsby
Steps to Reproduce
gatsby new
Add Markdown and MDX support
npm install
...
(note: I chose typescript when prompted, not sure if that matters)
Expected Result
npm install runs with no errors.
Actual Result
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: