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.

How to downgrade properly to a lower version of RN

See original GitHub issue

Refer here on the issue.

I wanted to use enzyme for shallow rendering and testing RN components but enzyme happens to want React 15.1.0, while RN 0.26.0 (Which was what I was using) wants React 15.0.2.

And then I upgraded (ran react-native upgrade) after npm installing RN 0.26.3 then realized I should be at 0.28 for newer React version. But after that react-native-router-flux broke and I got Failed to build DependencyGraph: @providesModule naming collision:.

So I just reverted all my changes from git. And since then had been unable to do an npm install. I keep running into

npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.1
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react@15.1.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.26.3 wants react@15.0.2
npm ERR! peerinvalid Peer react-redux@4.4.5 wants react@^0.14.0 || ^15.0.0-0

So whats RN recommended way to downgrade ? (Note that package.json has all the right versions I want RN 0.26.0 and React 15.0.2, but still the above error)

Issue Analytics

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

github_iconTop GitHub Comments

48reactions
levarberrycommented, Jan 21, 2017

Would have been nice to include a link before closing the ticket. This is the first result coming up on Google.

25reactions
grabboucommented, Jun 25, 2016

I am going to close this issue since there’s already StackOverflow question (great!) and it has more details.

PS. I’ve already answered there, hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proper mechanism to downgrade react-native - Stack Overflow
Set your current version as base and select the previous minor release of react-native (You should downgrade one version at a time, it's...
Read more >
Downgrading / reverting to a lower version - How-To - Duplicati
Use the main menu “About” -> “System info” Button to confirm your currently running version. · Stop Duplicati tray-icon and service AS applicable ......
Read more >
Cisco APIC Installation and ACI Upgrade and Downgrade Guide
Check the Release Notes of both the APIC and ACI switches for the target version to make sure your hardware is supported. Compatibility...
Read more >
react-native-screens - npm
For earlier versions, you must manually link the native module. ... To configure react-navigation to use screens instead of plain RN Views ...
Read more >
Upgrading to new versions - React Native
The upgrade command works on top of Git by using git apply with 3-way merge, therefore it's required to use Git in order...
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