Dependency conflict with React v19
Describe the bug
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: npm error Found: [email protected] 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/[email protected] 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 [email protected]
- npm install @tanstack/react-ranger
Expected behavior
Upgrade to React v19 works
Screenshots or Videos
No response
Platform
- OS: Windows
Additional context
No response
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!
@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!