Open duncannz opened 1 year ago
We have the same issue. I use it with React 18. Just installed with --force flag. But, proper solution will be great. Thanks.
Bump. Been using use-query-params just fine until like yesterday, but started to break lately as another package requires 2.2.1 :/
Version 2.2.1 adds a peer dependency on
@reach/router
: https://github.com/pbeshai/use-query-params/pull/261However,
@reach/router
itself has not been updated in over 3 years, and has a peer dependency on"react": "15.x || 16.x || 16.4.0-alpha.0911da3"
- i.e. it is not even compatible with React 17, let alone 18.This causes errors running
npm install
for anyone trying to use React 17 or 18 withuse-query-params
version 2.2.1.In my opinion,
@reach/router
which is clearly no longer an active project should not be added as a peer dependency, and it would possibly make sense to drop support altogether.An example of the error that now occurs when running
npm install
: