react-native-photo-browser icon indicating copy to clipboard operation
react-native-photo-browser copied to clipboard

bundling failed: UnableToResolveError: Unable to resolve module `react`

Open dhanababum opened this issue 6 years ago • 2 comments

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 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 Metro Bundler cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.

dhanababum avatar May 08 '18 04:05 dhanababum

@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.

EliteCRM avatar May 25 '18 06:05 EliteCRM

@EliteCRM Thanks

dhanababum avatar May 26 '18 15:05 dhanababum