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.

Question: Yarn start Failed with "Error: Unable to resolve module `react-redux`"

See original GitHub issue

Environment node: v13.8.0 yarn: 1.22.0 npm: 6.13.7 mac: mojave

There has an error when build from source:

error: Error: Unable to resolve module react-redux from src/init.tsx: react-redux could not be found within the project or in these directories: node_modules

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules: rm -rf node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*

I reinstall node\yarn\npm, can’t resolve it. Please Help…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
passycommented, Mar 10, 2020

@nikoant Has a fix for this. This should be in master in just a bit.

3reactions
JBuijgerscommented, Mar 5, 2020

Can confirm, I have the same issue.

Steps to reproduce

  1. git clone https://github.com/facebook/flipper.git
  2. cd flipper
  3. yarn
  4. yarn start

Info OS: Linux NPM: 6.13.2 Yarn: 1.22.0

Error error: Error: Unable to resolve module react-redux from src/init.tsx: react-redux could not be found within the project or in these directories: node_modules

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules: rm -rf node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-* at ModuleResolver.resolveDependency (/develop/flipper/static/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:186:15) at ResolutionRequest.resolveDependency (/develop/flipper/static/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (/develop/flipper/static/node_modules/metro/src/node-haste/DependencyGraph.js:287:16) at Object.resolve (/develop/flipper/static/node_modules/metro/src/lib/transformHelpers.js:267:42) at dependencies.map.result (/develop/flipper/static/node_modules/metro/src/DeltaBundler/traverseDependencies.js:434:31) at Array.map (<anonymous>) at resolveDependencies (/develop/flipper/static/node_modules/metro/src/DeltaBundler/traverseDependencies.js:431:18) at /develop/flipper/static/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33 at Generator.next (<anonymous>) at asyncGeneratorStep (/develop/flipper/static/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module 'react-redux ... - Stack Overflow
i first installed using npm install --save redux and then run did npm start and then react-native run-ios.Same error persists. – Saranya. Jul...
Read more >
unable to resolve module react-native-elements - You.com
I'm try to run expo project on iOS. When I run command expo start , Metro bundle starts successfully but when I click...
Read more >
Troubleshooting | React Navigation
I'm getting an error "Unable to resolve module" after updating to the latest version​. This might happen for 3 reasons: Stale cache of...
Read more >
react-redux - npm
Official React bindings for Redux. Latest version: 8.0.5, last published: 2 months ago. Start using react-redux in your project by running ...
Read more >
Unable to resolve module `@react-native-community/toolbar ...
Coding example for the question Error: Unable to resolve module ... yarn add @react-native-community/toolbar-android.
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