ranger icon indicating copy to clipboard operation
ranger copied to clipboard

Dependency conflict with React v19

Open minecrawler opened this issue 1 year ago • 2 comments

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

  1. npm install [email protected]
  2. npm install @tanstack/react-ranger

Expected behavior

Upgrade to React v19 works

Screenshots or Videos

No response

Platform

  • OS: Windows

Additional context

No response

minecrawler avatar Dec 09 '24 22:12 minecrawler

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!

jarikoff avatar Jan 31 '25 09:01 jarikoff

@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!

Image

minecrawler avatar Feb 01 '25 15:02 minecrawler