-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
'react-native upgrade' command still remains the old version. #23866
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.
|
This comment has been minimized.
This comment has been minimized.
Copying here additional details from #23867 by @pistou: 🐛 Bug ReportI'm trying to upgrade my projet to 0.59 as it released, but it tries to upgrade to 0.58.6, which is my current react-native version.
I tried to uninstall and reinstall |
New upgrade is a part of RN 0.59. If you upgrade from 0.58 it's not there yet. |
👋 there - so, it's a bit of a misunderstanding happening here 😅 Basically, the new To upgrade to 0.59 we recommend using the rn-diff-purge repo. |
Thanks! 😄 |
Per facebook/react-native#23866 (comment) from @kelset, it's not possible to use `react-native upgrade` to upgrade *to* RN 0.59; it's only usable *after* an upgrade to 0.59. The docs should reflect this, as-is it appears that `react-native upgrade` is usable to upgrade **to** RN 0.59.
I should point out that the official upgrade documentation page (https://facebook.github.io/react-native/docs/upgrading.html#content) still shows relies pretty heavily on |
that's because from 0.59 the CLI command |
@kelset got it! TBH it's about time they started paying attention to the upgrade process. |
Documentation of previous versions also shows |
@shubhnik you can find previous versions of the upgrade guide by browsing through the source file's history at https://github.com/facebook/react-native-website/commits/master/docs/upgrading.md Would you mind opening an issue over at https://github.com/facebook/react-native-website to request these past instructions get added to the upgrading guide? That guide is unversioned, so it will show the same content regardless of which version you select at the top. We'll need to modify the guide to account for past versions. If you can send a PR, that would be even better. |
So how does one actually upgrade from 0.58.6? |
You can use the CLI as a standalone, e.g.: |
🐛 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?
Environment
The text was updated successfully, but these errors were encountered: