You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, @tanstack/react-query requires peer dependency of react@^18.0.0, but the current version of @preact/compat is still in 17.1.2.
The installation succeeds with some peer dependency overriding warnings, but when running npm ci, the following error occurred:
Run npm cinpm error code ERESOLVEnpm error ERESOLVE could not resolvenpm errornpm error While resolving: @tanstack/react-query@5.51.1npm error Found: react@17.1.2npm error node_modules/reactnpm error react@"npm:@preact/compat@^17.1.2" from the root projectnpm errornpm error Could not resolve dependency:npm error peer react@"^18.0.0" from @tanstack/react-query@5.51.1npm error node_modules/@tanstack/react-querynpm error @tanstack/react-query@"^5.51.1" from the root projectnpm errornpm error Conflicting peer dependency: react@18.3.1npm error node_modules/reactnpm error peer react@"^18.0.0" from @tanstack/react-query@5.51.1npm error node_modules/@tanstack/react-querynpm error @tanstack/react-query@"^5.51.1" from the root projectnpm errornpm error Fix the upstream dependency conflict, or retrynpm error this command with --force or --legacy-peer-depsnpm error to accept an incorrect (and potentially broken) dependency resolution.npm errornpm errornpm error For a full report see:npm error /home/runner/.npm/_logs/2024-07-12T05_26_44_601Z-eresolve-report.txt
I wonder if it's suitable to bump the version of @preact/compat to at least 18.
Describe the feature you'd love to see
I'm using
@tanstack/react-query
and resolved the preactjs/preset-vite#124 problem by manually aliasingreact
through:$ npm install react@npm:@preact/compat react-dom@npm:@preact/compat
However,
@tanstack/react-query
requires peer dependency ofreact@^18.0.0
, but the current version of@preact/compat
is still in17.1.2
.The installation succeeds with some peer dependency overriding warnings, but when running
npm ci
, the following error occurred:I wonder if it's suitable to bump the version of
@preact/compat
to at least 18.Additional context (optional)
Reproduction repo:
https://github.com/zetaraku/hello-preact
The text was updated successfully, but these errors were encountered: