Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
luthfikamalananda opened this issue Apr 26, 2024 · 2 comments
Closed
1 task

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

luthfikamalananda opened this issue Apr 26, 2024 · 2 comments

Comments

@luthfikamalananda
Copy link

luthfikamalananda commented Apr 26, 2024

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

  • React: 18.2.0
  • ReactDOM/React Native: 18.2.0
  • Redux: 2.2.3
  • React Redux: 9.1.1
    -- dev depedencies --
  • "@types/react": 18.2.66
  • "@types/react-dom": 18.2.22

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?

  • Yes
@luthfikamalananda
Copy link
Author

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

@markerikson
Copy link
Contributor

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.

@markerikson markerikson closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants