Closed
Description
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
- React: 18.2.0
- ReactDOM/React Native: 0.73.0 (React-Native)
- Redux: 5.0.0
- React Redux: 9.0.3 (trying to install)
What is the current behavior?
Trying to install [email protected]
causes NPM to throw a could not resolve dependency error.
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react-native@"^0.69.0" from [email protected]
npm ERR! node_modules/react-redux
npm ERR! react-redux@"*" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react-native
npm ERR! peerOptional react-native@"^0.69.0" from [email protected]
npm ERR! node_modules/react-redux
npm ERR! react-redux@"*" 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.
The problem is reproducible by:
npx react-native@latest init Foo
cd Foo
npm install --save redux redux-thunk reselect
npm install --save react-redux
What is the expected behavior?
Installation should succeed without any error
Which browser and OS are affected by this issue?
macOS
Did this work in previous versions of React Redux?
- Yes
Metadata
Metadata
Assignees
Labels
No labels