cometchat / cometchat-sample-app-react-native

Voice & Video Calling and Text Chat App for React Native
https://www.cometchat.com
Other
327 stars 158 forks source link

npm install failure #89

Closed alemar11 closed 6 months ago

alemar11 commented 6 months ago

Describe the problem

When I run npm install, the command fails because the package async-storage 1.17.10 doesn't support rn 0.72.4

Reproduction

Clone the project and run npm install; using async-storage 1.22.3 seems to fix the problem

cometchat-helpcenter-bot commented 6 months ago

Keagan (CometChat Team) replied:

Hello,

Thank you for reaching out and sharing your concern with us.

Could you please provide us with the full error message you encounter when executing npm install, while using React Native version 0.72.4 along with the async-storage 1.17.10 package?

Regards

Keagan Ellis CometChat

alemar11 commented 6 months ago
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: cometchat-chat-sample-app-react-native@4.1.2
npm ERR! Found: react-native@0.72.4
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.72.4" from the root project
npm ERR!   peer react-native@"*" from @cometchat/calls-sdk-react-native@4.0.4
npm ERR!   node_modules/@cometchat/calls-sdk-react-native
npm ERR!     @cometchat/calls-sdk-react-native@"^4.0.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.0.0-0 || 0.60 - 0.70 || 1000.0.0" from @react-native-async-storage/async-storage@1.17.10
npm ERR! node_modules/@react-native-async-storage/async-storage
npm ERR!   @react-native-async-storage/async-storage@"1.17.10" from the root project
npm ERR!   peer @react-native-async-storage/async-storage@"*" from @cometchat/calls-sdk-react-native@4.0.4
npm ERR!   node_modules/@cometchat/calls-sdk-react-native
npm ERR!     @cometchat/calls-sdk-react-native@"^4.0.4" 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.
cometchat-helpcenter-bot commented 6 months ago

Keagan (CometChat Team) replied:

Hi,

Thank you for sharing the Information with us.

Please allow me some time to Investigate this Issue further and circle back with more Information at the earliest.

Regards

Keagan Ellis CometChat

cometchat-helpcenter-bot commented 6 months ago

Afroz Khan (CometChat Team) replied:

Hi there,

Can you please try by running npm install --legacy-peer-depsor npm install --force

Please let us know if this resolves the issue.

Regards,

Afroz Khan CometChat

alemar11 commented 6 months ago

tried npm install --legacy-peer-deps and it worked

cometchat-helpcenter-bot commented 6 months ago

Gaurav Yadav (CometChat Team) replied:

Hi,

Thank you for the confirmation, we will close this ticket for now, please reach out to us in case you have other queries.

Best Regards, Gaurav Yadav

CometChat