-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
Describe the bug
I've installed the follow two versions of these libraries
"@tanstack/react-query": "^5.0.0-alpha.91",
"@tanstack/react-query-next-experimental": "^5.0.0-alpha.80",they installed when run separately. But when I subsequently run npm i or try to install them both at the same time, ab initio, I get the following error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @tanstack/react-query-next-experimental@5.0.0-alpha.80
npm ERR! Found: @tanstack/react-query@5.0.0-alpha.91
npm ERR! node_modules/@tanstack/react-query
npm ERR! @tanstack/react-query@"^5.0.0-alpha.91" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @tanstack/react-query@"5.0.0-alpha.71" from @tanstack/react-query-next-experimental@5.0.0-alpha.80
npm ERR! node_modules/@tanstack/react-query-next-experimental
npm ERR! @tanstack/react-query-next-experimental@"^5.0.0-alpha.80" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @tanstack/react-query@5.0.0-alpha.71
npm ERR! node_modules/@tanstack/react-query
npm ERR! peer @tanstack/react-query@"5.0.0-alpha.71" from @tanstack/react-query-next-experimental@5.0.0-alpha.80
npm ERR! node_modules/@tanstack/react-query-next-experimental
npm ERR! @tanstack/react-query-next-experimental@"^5.0.0-alpha.80" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Users/adamrackis/.npm/_logs/2023-09-24T00_13_02_355Z-eresolve-report.txtnpm ERR! A complete log of this run can be found in:
npm ERR! /Users/adamrackis/.npm/_logs/2023-09-24T00_13_02_355Z-debug-0.log
Your minimal, reproducible example
n/a
Steps to reproduce
Run
npm i @tanstack/react-query-next-experimental @tanstack/react-query@5
on a fresh repo
Expected behavior
Should work
How often does this bug happen?
None
Screenshots or Videos
n/a
Platform
npm 9.5.1
Tanstack Query adapter
react-query
TanStack Query version
see above
TypeScript version
n/a
Additional context
n/a