-
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
[v2] Topics/peer dependencies #3671
[v2] Topics/peer dependencies #3671
Conversation
packages/gatsby-cli/README.md
Outdated
@@ -10,7 +10,7 @@ package installed locally. | |||
|
|||
## Install | |||
|
|||
`npm install --global gatsby-cli` | |||
`npm install --global gatsby-cli react react-dom` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that's right. We don't want to install those globally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
womp, thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not expert on dependencies but these propably should be added to starters as dependencies but there are so many of those starters and many of them are unofficial so making react and react-dom peer dependencies will break them I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just arrived at the same conclusion 👍
This is coming with a major version bump – I'd be surprised if this is the only thing that breaks compatibility with existing starters, but I don't know
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah — we'll upgrade the official starters and perhaps a few others. There'll be an upgrade guide for sites that starters will need to go through. It won't break anything though as a starter with a gatsby@1 dependency will keep working as normal.
Yeah, we'll have an upgrade guide which will say to install react/react-dom. Starters won't break because they'll have gatsby v1 in their package.json. But once their maintainers upgrade the starter, they'll add react/react-dom as dependencies so things will work fine. |
per #1990