react-query-firebase icon indicating copy to clipboard operation
react-query-firebase copied to clipboard

Can't install with React 18

Open Luisdv93 opened this issue 3 years ago • 4 comments

Hi, seems like it's not possible to install any of the packages on a project using React 18+

$ npm update
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/react
npm ERR!   react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @react-query-firebase/[email protected]
npm ERR! node_modules/@react-query-firebase/auth
npm ERR!   @react-query-firebase/auth@"^0.3.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.
npm ERR!

Luisdv93 avatar May 03 '22 18:05 Luisdv93

install it will --force command. using it with no issues so far. it would be great with updated dependencies though.

devjabeer avatar May 07 '22 16:05 devjabeer

Is updating the dependencies for React 18 in the works?

tombouquet avatar Jul 26 '22 06:07 tombouquet

is this library is ready for React 18 now ?

electroheadfx avatar Sep 25 '22 19:09 electroheadfx

Hi,

As of 11/2022, the documentation specifies that RectQueryDevtools is already included in the main library 'react-query', so no separate installation is needed:

import { ReactQueryDevtools } from 'react-query/devtools'

xetaxe avatar Nov 28 '22 18:11 xetaxe