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.

'react-native upgrade' command still remains the old version.

See original GitHub issue

🐛 Bug Report

The blog(http://facebook.github.io/react-native/blog/) says that the 0.59.0 released, and announced the the new upgrade way using ‘react-native upgrade’. But when I ran the command, the older version of the command result shown. Is it a just bug or the new way did not applied the new way to the react-native-cli server?

JYs-MBP:0.58.6 jyk$ react-native upgradeYou 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.htmlUpgrading project to react-native v0.58.6 Check out the release notes and breaking changes: https://github.com/facebook/react-native/releases/tag/v0.58.0 Upgrading project to react-native v0.58.6 Check out the release notes and breaking changes: https://github.com/facebook/react-native/releases/tag/v0.58.0

Environment

React Native Environment Info: System: OS: macOS 10.14.3 CPU: (12) x64 Intel® Core™ i9-8950HK CPU @ 2.90GHz Memory: 8.11 GB / 32.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.10.0 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 Android SDK: API Levels: 23, 24, 25, 26, 27, 28 Build Tools: 27.0.3, 28.0.2, 28.0.3 System Images: android-26 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom_64, android-26 | Google Play Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.2 AI-181.5540.7.32.5056338 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.6.3 => 16.6.3 react-native: 0.58.6 => 0.58.6 npmGlobalPackages: react-native-git-upgrade: 0.2.7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

14reactions
kelsetcommented, Mar 12, 2019

👋 there - so, it’s a bit of a misunderstanding happening here 😅

Basically, the new upgrade command is usable from 0.59, so when you upgrade to it it’s still not available. We are fixing the blogpost to be more clear on it 😃

To upgrade to 0.59 we recommend using the rn-diff-purge repo.

7reactions
thymikeecommented, Mar 12, 2019

New upgrade is a part of RN 0.59. If you upgrade from 0.58 it’s not there yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading to new versions - React Native
1. Run the upgrade command​ ... The upgrade command works on top of Git by using git apply with 3-way merge, therefore it's...
Read more >
Upgrading react native to latest version - Stack Overflow
My advice is to upgrade to the latest version. There will be enough dependency issues anyway so you're best dealing with them only...
Read more >
How to Upgrade to React 18
In this post, we will guide you through the steps for upgrading to React 18. Please report any issues you encounter while upgrading...
Read more >
Upgrading React Native from 0.61.5 to 0.62.3 - Medium
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies.
Read more >
Upgrading a React Native app from 0.60 to 0.65 - YouTube
Jamon attempts to upgrade a React Native app from 0.60 to 0.65 with ... mixed results. -- Watch live at https://www.twitch.tv/jamonholmgren.
Read more >

github_iconTop Related Medium Post

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