Skip to content
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-git-upgrade always downgrade react dependency to 16.0.0-alpha.12 #15926

Closed
pocesar opened this issue Sep 13, 2017 · 5 comments
Closed
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@pocesar
Copy link

pocesar commented Sep 13, 2017

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  1. react-native -v: 0.48.2
  2. node -v: 8.4.0
  3. npm -v: 4.6.1

Then, specify:

  • Target Platform: Android
  • Development Operating System: Windows 10 x64

Steps to Reproduce

  1. react-native-git-upgrade on a project with react@16.0.0-beta.5 or greater

Expected Behavior

Keep current version that matches fresh react-native init, that is 16.0.0-beta.5

Actual Behavior

It will try to install 16.0.0-alpha.12, whatever the version of react already installed. this leads to inconsistencies and problems like #14209 since different tools might have different versions installed (like react-test-renderer)

Reproducible Demo

@dantman
Copy link
Contributor

dantman commented Sep 14, 2017

It will try to install 16.0.0-alpha.12, whatever the version of react already installed. this leads to inconsistencies and problems like #14209 since different tools might have different versions installed (like react-test-renderer)

react-test-renderer should be pinned to the same version of react that react-native uses, the version of that package is directly linked to the version of react you use.

@pocesar
Copy link
Author

pocesar commented Sep 14, 2017

I want to use react-test-renderer@16.0.0-rc.3 and I won't be able to because of react-native-git-upgrade keep downgrading react? i'm currently using react@16.0.0-rc.3, but it keeps setting it to alpha.12

@dantman
Copy link
Contributor

dantman commented Sep 14, 2017

@pocesar Using the latest version of react-test-renderer will not get you extra features, there is no purpose in trying to use a newer version of it than you need. The version of react-test-renderer you use should be the same as the version of react that is in use.

So you should be using react-test-renderer@16.0.0-alpha.12 with react@16.0.0-alpha.12. You shouldn't be trying to upgrade react to a different version than the version of react that react-native is built to be used with. The two libraries are intertwined and using the wrong version isn't guaranteed to work at all.

@pocesar
Copy link
Author

pocesar commented Sep 14, 2017

I've been using react 16.0.0-rc.* with RN since 0.47 without problems, not sure what your point is, FUD much?

@stale
Copy link

stale bot commented Nov 13, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Nov 13, 2017
@stale stale bot closed this as completed Nov 20, 2017
@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants