Discussion: Upgrade process is a pain
See original GitHub issueI’m trying to upgrade from RN 0.57.8 to 0.59.0.
Unfortunately I’m trapped in a double bind because:
react-native-git-upgrade 0.59.0 fails with the following error:
git-upgrade ERR! An error occurred during upgrade:
git-upgrade ERR! Error: ENOENT: no such file or directory, stat './node_modules/react-native/local-cli/generator/copyProjectTemplateAndReplace.js'
I’ve found this issue, where it is suggested to use the new upgrade command of the CLI. But, the version I’m running tells me to use react-native-git-upgrade instead 8()
You should consider using the new upgrade tool based on Git. It makes upgrades easier by resolving most conflicts automatically.
To use it:
- Go back to the old version of React Native
- Run "npm install -g react-native-git-upgrade"
- Run "react-native-git-upgrade"
See https://facebook.github.io/react-native/docs/upgrading.html
What should I do to upgrade to 0.59.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:46
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Upgrading Software and Hardware ... - Winning Technologies
Performing routine upgrades is essential; from a hardware perspective, there are new and faster CPUs, faster hard drives, and increased process ...
Read more >Upgrading Software And Hardware, Why The Pain Might Be ...
According to eLearning Industry, here are some of the steps you should take before you start any application or operating-system upgrade. - ...
Read more >The Path to a Pain-Free Control System Upgrade
The first overarching step is to upgrade to a platform. Let me explain what I mean by platform.
Read more >Enterprise Software Upgrades: Less Pain, More Gain - CIO
1. Upgrades are unforgiving when it comes to customization. · 2. The move to Internet architecture changes everything for the IT staff and...
Read more >Upgrading SAP S/4HANA: Why, How, and Best Practices ...
Technical Upgrade Steps for your SAP S/4HANA target release. ... Having assessed the impacts and discussed them with your project sponsor and stakeholders, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/react-native-community/react-native-releases/issues/100#issuecomment-472111011
Bump
react-native
to0.59
in your package.json, runnpm/yarn install
, then runreact-native upgrade --legacy
Alternatively: You can follow the recommendations here for getting to 0.59
@hramos For me it was not clear what I was supposed to do. I understood I need to apply changes manually and that is about it.
The following are the steps I took and I think they should be added / explained better in the blog post.
Compare
column link and apply all changes that were made there manually on your project.yarn / npm install
, this will officially put your project on RN v0.59.0 [This is the main step that is missing from the blog post imo]react-native upgrade
to upgrade your project to the latest RN version (0.59.1) using the new update command.pod install
for iOS if needed and thats it, you are now on the latest RN version.For me the confusing parts were steps 2, 3, and 4. All that was written in the blog post was “Apply the changes manually”.