Dependency conflict with React v19 #93
Send to my agentDescribe the bug#
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: npm error Found: react@19.0.0 npm error node_modules/react npm error react@"^19" from the root project npm error npm error Could not resolve dependency: npm error peer react@"^16.8.0 || ^17.0.0 || ^18.0.0" from @tanstack/react-ranger@0.0.4 npm error node_modules/@tanstack/react-ranger npm error @tanstack/react-ranger@"0.0.4" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.
Your Example Website or App#
npm
Steps to Reproduce the Bug or Issue#
- npm install react@19.0.0
- npm install @tanstack/react-ranger
Expected behavior#
Upgrade to React v19 works
Screenshots or Videos#
No response
Platform#
- OS: Windows
Additional context#
No response
@tannerlinsley I think it's already compatible and there's not much to do
@jarikoff I just added an override and am happily using it!
Hi!
I encountered the same React 19 peer dependency conflict when installing
@tanstack/react-rangerin a new TanStack Start project.My environment:
- OS: Windows
- Node.js: 26.13.0
- npm: 11.20.0
- React: 19.3.1
- @tanstack/react-ranger: 0.0.5
Steps to reproduce:
- Create a TanStack Start React application using React 19.
- Run:
npm install @tanstack/react-rangerActual behavior:
npm fails with
ERESOLVEbecause@tanstack/react-ranger@0.0.5declares the following React peer dependencies:^16.8.0 || ^17.0.0 || ^18.0.0React 19 is not included.
Workaround:
The package can be installed using:
npm install @tanstack/react-ranger --legacy-peer-depsHowever, this bypasses npm's peer dependency validation and does not confirm runtime compatibility with React 19.
Expected behavior:
Could you update the React peer dependencies to include React 19, if the package is compatible, or clarify the current React 19 support status?
TanStack Start uses React 19, and it would be great to use TanStack Ranger without having to bypass npm's dependency checks.
Thank you for your work on this library!
dergachoff(GitHub profile, opens in a new tab) linked this to #104
Sign in to join this conversation.
Hey everyone,
Range is an awesome project, just like any other TanStack project. TanStack Start already uses React 19 by default, but this useful library still depends on React 18.
Please update this project—it's the only dependency preventing our app from migrating to React 19.
Really don't want to switch to something else because of this.
Thanks!