redux-injectors icon indicating copy to clipboard operation
redux-injectors copied to clipboard

Unmet peer dependencies with Redux 8

Open SamuelQuinones opened this issue 3 years ago • 5 comments

When trying to create a new app with redux v8 installed I get the following error:

npm ERR! Found: [email protected]
npm ERR! node_modules/react-redux
npm ERR!   react-redux@"8.0.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-redux@"^7.1.0" from [email protected]
npm ERR! node_modules/redux-injectors
npm ERR!   redux-injectors@"2.1.0" from the root project

I'm wondering if this is tangentially related to #34 - If I use --force or --legacy-peer-deps the install does finish, and the app does run and work without issue.

I think this could easily be fixed by adding redux 8 as a peer dep, but i know v7 to v8 is a major version bump

SamuelQuinones avatar Dec 14 '22 15:12 SamuelQuinones

any updates regarding this matter?

bouncydragon avatar Feb 13 '23 12:02 bouncydragon

@SamuelQuinones how did you resolve the issue?

siarheipashkevich avatar Feb 22 '23 09:02 siarheipashkevich

@siarheipashkevich I didn't really resolve it, as i mentioned i get around it be using --force or --legacy-peer-deps and the install finishes

SamuelQuinones avatar Feb 23 '23 17:02 SamuelQuinones

Please change version dependency of the react-redux: "react-redux": ">=7.0.0" stead of "react-redux": "^7.1.0"

nixjs avatar Apr 16 '23 06:04 nixjs

Everyone can temporarily use my package before the owner of the redux injector updates the new version. https://github.com/nixjs/redux-injectors-react yarn add @nixjs23n6/redux-injectors # (or yarn add redux-injectors)

nixjs avatar Apr 16 '23 06:04 nixjs