Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency conflict with React v19 #93

Open
minecrawler opened this issue Dec 9, 2024 · 2 comments
Open

Dependency conflict with React v19 #93

minecrawler opened this issue Dec 9, 2024 · 2 comments

Comments

@minecrawler
Copy link

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

@jarikoff
Copy link

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!

@minecrawler
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants