Skip to content
Source
Sign inSign up
TanStack/ranger

Dependency conflict with React v19 #93

Send to my agent
Openminecrawler(GitHub profile, opens in a new tab) opened this issue 3 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: 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

  1. npm install react@19.0.0
  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

  1. 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!

  2. @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

  3. Hi!

    I encountered the same React 19 peer dependency conflict when installing @tanstack/react-ranger in 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:

    1. Create a TanStack Start React application using React 19.
    2. Run:
    npm install @tanstack/react-ranger

    Actual behavior:

    npm fails with ERESOLVE because @tanstack/react-ranger@0.0.5 declares the following React peer dependencies:

    ^16.8.0 || ^17.0.0 || ^18.0.0

    React 19 is not included.

    Workaround:

    The package can be installed using:

    npm install @tanstack/react-ranger --legacy-peer-deps

    However, 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!

Sign in to join this conversation.