Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase v10 #93

Open
husleuujii opened this issue Aug 15, 2023 · 2 comments
Open

firebase v10 #93

husleuujii opened this issue Aug 15, 2023 · 2 comments

Comments

@husleuujii
Copy link

In v10, there is error in install npm i @react-query-firebase/firestore

@dr1602
Copy link

dr1602 commented Dec 15, 2023

Same here, once you are in the corresponding directory (in my case a ReactJS proyect with typescript, npm and firebase), when you use the command (in the ubuntu console): npm i --save @react-query-firebase/analytics

The following message appears:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/firebase
npm ERR!   firebase@"^10.7.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer firebase@"^9.0.1" from @react-query-firebase/[email protected]
npm ERR! node_modules/@react-query-firebase/analytics
npm ERR!   @react-query-firebase/analytics@"*" 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! 
npm ERR! For a full report see:
npm ERR! /root/.npm/_logs/2023-12-15T18_39_38_961Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-12-15T18_39_38_961Z-debug-0.log

I have already tried as well updating the packages I use for the project with: npm install --legacy-peer-deps

but still get the same error.

@cgalo
Copy link

cgalo commented Feb 16, 2024

The installation documentation points that react-query-firebase only supported Firebase JS SDK v9. This is the reason the issue above is happening.

Note: The library only supports Firebase JS SDK v9 - learn more about it here!

I went ahead and created a feature request (#96). Hopefully this package can be updated to support the newer Firebase versions 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants