question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: Unable to resolve "redux" from "node_modules/react-redux/lib/connect/mapDispatchToProps.js"

See original GitHub issue

After 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:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:5

github_iconTop GitHub Comments

2reactions
sunnylqmcommented, Oct 10, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found