0

I tried using "npm install @react-native-firebase/messaging" in cmd and an issue occured while installing.

While resolving: [email protected] Found: [email protected] node_modules/react react@"17.0.2" from the root project peer react@"*" from @react-native-firebase/[email protected] node_modules/@react-native-firebase/app @react-native-firebase/app@"^11.3.3" from the root project

Could not resolve dependency: peer react@"17.0.1" from [email protected] node_modules/react-native react-native@"0.64.0" from the root project peer react-native@"*" from @react-native-firebase/[email protected] node_modules/@react-native-firebase/app @react-native-firebase/app@"^11.3.3" from the root project

1 Answer 1

3

You need install latest version of @react-native-firebase/app and the same version of @react-native-firebase/analytics. Because in March this library update depedencies for react.

Changes you can see here https://github.com/invertase/react-native-firebase/pull/5042/files

npm install @react-native-firebase/app@latest
npm install @react-native-firebase/analytics@latest
Sign up to request clarification or add additional context in comments.

1 Comment

This fixed it. Thank you so much.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.