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.

Cannot build with react-native@0.43.1

See original GitHub issue

Getting this error:

Loading dependency graph, done.
error: bundling: UnableToResolveError: Unable to resolve module `react-native/Libraries/Components/StaticContainer` from `/Users
/username/Documents/work/projectname/node_modules/react-native-root-siblings/lib/AppRegistryInjection.js`: Module does no
t exist in the module map or in these directories:
  /Users/username/Documents/work/projectname/node_modules/react-native/Libraries/Components
,   /Users/username/node_modules/react-native/Libraries/Components

I performed a short research and found this renaming commit: https://github.com/facebook/react-native/commit/57daad98f01b59fce9cb9bf663fd0b191c56b232

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
anishmprasadcommented, Nov 12, 2017

Loading dependency graph, done. error: bundling: UnableToResolveError: Unable to resolve module react-native/Libraries/vendor/emitter/EventEmitterfrom/Users/user1/Downloads/app/node_modules/react-native-root-siblings/lib/AppRegistryInjection.js`: Module does not exist in the module map or in these directories: /Users/user1/Downloads/app/node_modules/react-native/Libraries/vendor/emitter

This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache. at ResolutionRequest._resolveNodeDependency (/Users/user1/Downloads/app/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:394:11) at ResolutionRequest.resolveDependency (/Users/user1/Downloads/app/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:141:29) at dependencyNames.map.name (/Users/user1/Downloads/app/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:145:59) at Array.map (native) at ResolutionRequest.resolveModuleDependencies (/Users/user1/Downloads/app/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:145:42) at module.read.then (/Users/user1/Downloads/app/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:172:40) at process._tickCallback (internal/process/next_tick.js:109:7) Bundling index.ios.js 99.0% (833/837), failed.`
1reaction
OrangeFlavoredColdCoffeecommented, Nov 5, 2017

i got this .

Unable to resolve module react-native/Libraries/vendor/emitter/EventEmitter from /Users/litao/Project/auto-market/node_modules/react-native-root-siblings/lib/AppRegistryInjection.js: Module does not exist in the module map or in these directories: /Users/litao/Project/auto-market/node_modules/react-native/Libraries/vendor/emitter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find com.android.support:appcompat-v7:25.3.1
The issue seems to be related to react-native-fbsdk , but looking through its build.gradle it does not list support.appcompat-v7.25.x . Any ...
Read more >
Integration with Existing Apps - React Native
React Native is great when you are starting a new mobile app from scratch. However, it also works well for adding a single...
Read more >
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >
React Native · Learn once, write anywhere
Create native apps for Android, iOS, and more using React. React Native combines the best parts of native development with React, a best-in-class...
Read more >
Using react-devtools with React Native | by Brent Vatne
To use react-devtools with React Native, see this README: ... As of React Native 0.43 / React 16 alpha (Expo SDK 16), it...
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