-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Issues upgrading react-native #11104
Comments
Have you installed react 15.4?
|
No. I have react 15.3.2. But, in this issue I'm not requesting help to update my local environment. I'm reporting a bug in the documentation related to upgrading React Native. We should add the previous steps to upgrade React before upgrading React Native. |
This is really confusing, sorry! Here's a PR for the docs: We'll release a new upgrade tool soon where we should fix this. |
@mkonicek is there a PR related? Or is it something you are thinking right now? If you want, you can give a clue about how/where to do it, and I can send a PR. |
I'm not sure I understand, sorry. Send a PR for what exactly? |
Summary: **Motivation** As NoelBroda pointed out in #11104 and #11123, NPM often produces an unmet peerDependency when upgrading React Native. It causes a failure when running "npm install" with NPM2. During the git-upgrade, we have to take care of the `react` peerDep: this PR checks if the installed `react` package matches the `react` peerDep of the new `react-native` version. If so, R & RN are upgraded at the same time (in the same `npm install`). **Test plan** - Publish `react-native-git-upgrade` to Sinopia, - Run `react-native-git-upgrade` inside a RN project with version < 0.37, - Verify that no "unmet peer dependency" warning is displayed - Open the `package.json` and verify that both R & RN have been updated Closes #11226 Differential Revision: D4258007 Pulled By: mkonicek fbshipit-source-id: cff466d4710807d97fc6161f47bb974097b75261
Summary: **Motivation** As NoelBroda pointed out in facebook#11104 and facebook#11123, NPM often produces an unmet peerDependency when upgrading React Native. It causes a failure when running "npm install" with NPM2. During the git-upgrade, we have to take care of the `react` peerDep: this PR checks if the installed `react` package matches the `react` peerDep of the new `react-native` version. If so, R & RN are upgraded at the same time (in the same `npm install`). **Test plan** - Publish `react-native-git-upgrade` to Sinopia, - Run `react-native-git-upgrade` inside a RN project with version < 0.37, - Verify that no "unmet peer dependency" warning is displayed - Open the `package.json` and verify that both R & RN have been updated Closes facebook#11226 Differential Revision: D4258007 Pulled By: mkonicek fbshipit-source-id: cff466d4710807d97fc6161f47bb974097b75261
Summary: Fixes issues with docs from facebook#11104. We should document people should update both `react` and `react-native` until we switch to the new upgrades. Closes facebook#11123 Differential Revision: D4236994 Pulled By: bestander fbshipit-source-id: 3baf5187eda3701f867e6801632b018d7fe0c1ff
Summary: **Motivation** As NoelBroda pointed out in facebook#11104 and facebook#11123, NPM often produces an unmet peerDependency when upgrading React Native. It causes a failure when running "npm install" with NPM2. During the git-upgrade, we have to take care of the `react` peerDep: this PR checks if the installed `react` package matches the `react` peerDep of the new `react-native` version. If so, R & RN are upgraded at the same time (in the same `npm install`). **Test plan** - Publish `react-native-git-upgrade` to Sinopia, - Run `react-native-git-upgrade` inside a RN project with version < 0.37, - Verify that no "unmet peer dependency" warning is displayed - Open the `package.json` and verify that both R & RN have been updated Closes facebook#11226 Differential Revision: D4258007 Pulled By: mkonicek fbshipit-source-id: cff466d4710807d97fc6161f47bb974097b75261
Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why. |
Description
Following the "Upgrading" documentation (https://facebook.github.io/react-native/docs/upgrading.html), I'm not able to upgrade
react-native
Reproduction
Run
npm install --save [email protected]
having installed version0.37.0
You will see this log:
Solution
Add information about how to upgrade properly
react-native
Additional Information
The text was updated successfully, but these errors were encountered: