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
I encountered an issue while attempting to use @reduxjs/toolkit with the newly released React 19. The installation fails due to peer dependency conflicts, as @reduxjs/toolkit currently specifies compatibility only with React versions ^16.9.0, ^17.0.0, or ^18.
Here is the error message:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @reduxjs/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^19.0.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^19.0.0" from the root project
npm ERR! peer react@">= 16" from [email protected]
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"5.0.1" from the root project
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react@"^16.9.0 || ^17.0.0 || ^18" from @reduxjs/[email protected]
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peerOptional react@"^16.9.0 || ^17.0.0 || ^18" from @reduxjs/[email protected]
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"" 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/jesusvergara/.npm/_logs/2024-12-09T20_41_42_736Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /Users/jesusvergara/.npm/_logs/2024-12-09T20_41_42_736Z-debug-0.log
The text was updated successfully, but these errors were encountered:
Hello,
I encountered an issue while attempting to use @reduxjs/toolkit with the newly released React 19. The installation fails due to peer dependency conflicts, as @reduxjs/toolkit currently specifies compatibility only with React versions ^16.9.0, ^17.0.0, or ^18.
Here is the error message:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @reduxjs/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"^19.0.0" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^19.0.0" from the root project
npm ERR! peer react@">= 16" from [email protected]
npm ERR! node_modules/react-scripts
npm ERR! react-scripts@"5.0.1" from the root project
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react@"^16.9.0 || ^17.0.0 || ^18" from @reduxjs/[email protected]
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peerOptional react@"^16.9.0 || ^17.0.0 || ^18" from @reduxjs/[email protected]
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"" 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/jesusvergara/.npm/_logs/2024-12-09T20_41_42_736Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /Users/jesusvergara/.npm/_logs/2024-12-09T20_41_42_736Z-debug-0.log
The text was updated successfully, but these errors were encountered: