reduxjs / react-redux

Official React bindings for Redux
https://react-redux.js.org
MIT License
23.27k stars 3.36k forks source link

Can't NPM Install Redux with Vite React + Typescript #2161

Closed luthfikamalananda closed 1 month ago

luthfikamalananda commented 1 month ago

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

What is the current behavior?

Couldn't install the redux toolkit and react redux. With this error "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." Screenshot 2024-04-26 151431

I tried to use --force to bypass the installation, but i couldn't use some of the RTK Query Hooks

What is the expected behavior?

Should be installable

Which browser and OS are affected by this issue?

All Browser

Did this work in previous versions of React Redux?

luthfikamalananda commented 1 month ago

Here's the log report 2024-04-26T08_08_58_365Z-eresolve-report.txt

markerikson commented 1 month ago

This looks like an issue with React Native 0.74 needing React 18.2, and your app also trying to install React 18.3. Either way this doesn't have anything to do with React-Redux.