Skip to content
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

chore(docs): clarify react upgrade with --legacy-peer-deps #38359

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

kaltepeter
Copy link
Contributor

Description

Clarify the upgrade react step when migrating from v4 to v5. The previous step for upgrading Gatsby first has similar documentation.

If I follow the guide on node 18 / npm 9 and run the upgrade react command (npm install react@latest react-dom@latest) before resolving all the other dependencies I get errors like the image below. It appears until the dependency resolution is complete by later steps --legacy-peer-deps is expected.

image

Running with --legacy-peer-deps results in success.

image

Documentation

Tests

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 16, 2023
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

Thank you!

@pieh pieh removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 21, 2023
@pieh pieh merged commit 2e08202 into gatsbyjs:master Jul 21, 2023
1 check passed
@kaltepeter kaltepeter deleted the doc-v4-v5 branch July 24, 2023 12:48
This was referenced Sep 23, 2023
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.

2 participants