react-query-firebase
react-query-firebase copied to clipboard
firebase v10
In v10, there is error in install npm i @react-query-firebase/firestore
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.
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 😄