Skip to content

iOS真机运行报错 #6

@vistaLin

Description

@vistaLin

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.
    at /Users/xingkuan.lin/Desktop/ReactNative/第三方开源项目/GankCamp-React-Native-master/node_modules/node-haste/lib/DependencyGraph/ResolutionRequest.js:481:17
    Command /bin/sh failed with exit code

我查看了里面的代码是: return Promise.resolve().then(function () {
if (!_this7._fastfs.dirExists(potentialDirPath)) {
throw new UnableToResolveError(fromModule, toModule, 'Unable to find this module in its module map or any of the node_modules directories under ' + potentialDirPath + ' and its parent directories\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n 1. Clear watchman watches: watchman watch-del-all.\n 2. Delete the node_modules folder: rm -rf node_modules && npm install.\n 3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.');
}

是因为你的函数消息机制之类的有问题吗?

希望你能够帮助一下,看是否能够解决问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions