Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

bundling failed: UnableToResolveError: Unable to resolve module react #79

Open
dhanababum opened this issue May 8, 2018 · 2 comments
Open

Comments

@dhanababum
Copy link

I did npm install

When I try to run react-native run-android, facing bellow issue

error: bundling failed: UnableToResolveError: Unable to resolve module react from /Users/user/react-native-photo-browser/lib/index.js: Module does not exist in the module map

This might be related to facebook/react-native#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 Metro Bundler cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.
@EliteCRM
Copy link

@dhanababum I get the same error.
And then, installed this package in my project and also copy which Example demo into my project.
Done that, you will get anther failed, you should have to obey this https://facebook.github.io/react-native/docs/linking-libraries-ios.html#content.
That's all, you will run.

@dhanababum
Copy link
Author

@EliteCRM Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants