Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 742) #6

Open
ZainaliSyed opened this issue Oct 23, 2017 · 2 comments

Comments

@ZainaliSyed
Copy link

screenshot from 2017-10-23 11-52-11

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 742): UnableToResolveError: Unable to resolve module prop-types from /home/********/Downloads/react-native-phone-verification-master/example/node_modules/react-native-emoji/index.js: Module does not exist in the module map or in these directories:
/home/**********/Downloads/react-native-phone-verification-master/example/node_modules

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 packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.
    (node:13747) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled willterminate the Node.js process with a non-zero exit code.

I have Follow all these three steps as but still faceing same error .

@RidaRidss
Copy link

issue
facing same error

@ZainaliSyed
Copy link
Author

@RidaRidss
Try these cache commands

  1. watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf ios/build && rm -rf node_modules && yarn cache clean && npm cache verify
  2. yarn install && yarn start --reset-cache

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

No branches or pull requests

2 participants