Tuesday, 25 April 2017

UnableToResolveError: Unable to resolve module `util`

I use xml2json in my react native project, while running the app, I get error message

UnableToResolveError: Unable to resolve module `events`
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`.

also occurred in other third-part modules, they are all nodejs core modules that cannot be resolved. Need your help, thx : )



via Ci Kai

No comments:

Post a Comment