magicismight / react-native-root-toast

react native toast like component, pure javascript solution
MIT License
2.05k stars 404 forks source link

Installation Error: unable to resolve dependency tree #153

Open ardiansyaherwin opened 2 years ago

ardiansyaherwin commented 2 years ago

Hi,

I failed to install the package onto my project. is there any missing dependencies?

"react": "16.12.0",
"react-native": "0.61.4",

and here's the installation error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: MyApp@2.3.2
npm ERR! Found: react@16.12.0
npm ERR! node_modules/react
npm ERR!   react@"16.12.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.9.0" from react-native@0.61.4
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.61.4" from the root project
npm ERR!   peer react-native@">=0.47.0" from react-native-root-toast@3.3.0
npm ERR!   node_modules/react-native-root-toast
npm ERR!     react-native-root-toast@"*" from the root project

thanks

sunnylqm commented 2 years ago

i don't think it has anything to do with this lib.  it seems react-native require 16.9 while another lib require 16.12 Usually we should meet the requirements of react-native first and try to force other libs to accept.

---Original--- From: @.> Date: Wed, Feb 16, 2022 12:30 PM To: @.>; Cc: @.***>; Subject: [magicismight/react-native-root-toast] Installation Error: unable toresolve dependency tree (Issue #153)

Hi,

I failed to install the package onto my project. is there any missing dependencies? "react": "16.12.0", "react-native": "0.61.4",
and here's the installation error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @. npm ERR! Found: @. npm ERR! node_modules/react npm ERR! react@"16.12.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"16.9.0" from @. npm ERR! node_modules/react-native npm ERR! react-native@"0.61.4" from the root project npm ERR! peer react-native@">=0.47.0" from @. npm ERR! node_modules/react-native-root-toast npm ERR! react-native-root-toast@"*" from the root project
thanks

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>