ERROR: Unable to resolve "redux" from "node_modules/react-redux/lib/connect/mapDispatchToProps.js"
See original GitHub issueAfter adding the react-native-root-toast
in my project I got this error:
Unable to resolve “redux” from “node_modules/react-redux/lib/connect/mapDispatchToProps.js”
To solve this you can add explicitly the redux
package in your project:
yarn add redux
or npm install redux
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:5
Top Results From Across the Web
Module not found: Can't resolve 'redux' in node_modules
When I used typescript to create my react project, I introduced Redux error reporting, which indicated that I could not ...
Read more >Module not found: Can't resolve 'redux' in React | bobbyhadz
To solve the error Module not found: Error: Can't resolve 'redux', make sure to install the `redux` package by opening your terminal in...
Read more >Unable to resolve module react-redux : r/reactnative - Reddit
I'm trying to use one node_modules for multiple RN projects. The folder structure is something like this. /projects /project1 /project2 ...
Read more >redux-form - npm
A higher order component decorator for forms using Redux and React. Latest version: 8.3.9, last published: a month ago.
Read more >Configuring Your Store - Redux
First, let's look at the original index.js file in which we created our store: import React from 'react' import { render } from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cause root-toast depends on root-siblings, which lives outside root component and hence can not get state from redux provider. The current workaround is to import redux provider to root-siblings which also make redux a peerDependency. The new version of npm will not install peerDependency automatically anymore, so that’s why you saw this issue. For now, you can install redux manually to fix.
I was thinking about refactoring of root-siblings to remove the dependency of redux things.
Fixed in https://github.com/magicismight/react-native-root-siblings/commit/13e3aab67cd738803f95bb2a82ffd1416c354530