Closed
Description
Hey there, I'm trying out the React Compiler on the React 19 beta but when running npm install
on the latest @reduxjs/toolkit
I'm getting Could not resolve dependency
errors. Below is the full error, is this a known problem?
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @reduxjs/toolkit@2.2.7
npm ERR! Found: react@19.0.0-rc-a7d1240c-20240731
npm ERR! node_modules/react
npm ERR! react@"19.0.0-rc-a7d1240c-20240731" from the root project
npm ERR! peer react@"*" from react-canvas-confetti@2.0.7
npm ERR! node_modules/react-canvas-confetti
npm ERR! react-canvas-confetti@"^2.0.7" from the root project
npm ERR! 1 more (react-dom)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react@"^16.9.0 || ^17.0.0 || ^18" from @reduxjs/toolkit@2.2.7
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"^2.2.7" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@18.3.1
npm ERR! node_modules/react
npm ERR! peerOptional react@"^16.9.0 || ^17.0.0 || ^18" from @reduxjs/toolkit@2.2.7
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"^2.2.7" 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.
Metadata
Metadata
Assignees
Labels
No labels