razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
121 stars 107 forks source link

Fix unable to resolve dependency tree error #402

Open pushpender-singh-ap opened 2 years ago

pushpender-singh-ap commented 2 years ago
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: xyz@1.5.32
npm ERR! Found: react-native@0.66.2
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.66.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.66.4" from react-native-razorpay@2.2.9
npm ERR! node_modules/react-native-razorpay
npm ERR!   react-native-razorpay@"^2.2.9" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/pushpendersingh/.npm/eresolve-report.txt for a full report.
pushpender-singh-ap commented 2 years ago

NOTE:- You do not need to upgrade again and again REACT and REACT NATIVE versions and it will solve the installation issue in the latest version of react-native because it will support all the latest versions.

pushpender-singh-ap commented 2 years ago

@premsvmm What do you think about merging the PR?