question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discussion: Upgrade process is a pain

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:46
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

19reactions
jeffreyffscommented, Mar 13, 2019

https://github.com/react-native-community/react-native-releases/issues/100#issuecomment-472111011

Bump react-native to 0.59 in your package.json, run npm/yarn install, then run react-native upgrade --legacy

Alternatively: You can follow the recommendations here for getting to 0.59

16reactions
amitassarafcommented, Mar 22, 2019

@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.

  1. In rn-diff-purge’s version table find your current React Native version.
  2. Click the Compare column link and apply all changes that were made there manually on your project.
  3. Repeat step 2 all the way up the table up to React Native version 0.59.0
  4. Run 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]
  5. Run react-native upgrade to upgrade your project to the latest RN version (0.59.1) using the new update command.
  6. Run 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”.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found