Delete the node_modules folder: rm -rf node_modules && npm install.
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.');
}
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
watchman watch-del-all
.node_modules
folder:rm -rf node_modules && npm install
.rm -fr $TMPDIR/react-*
ornpm 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 thenode_modules
folder:rm -rf node_modules && npm install
.\n 3. Reset packager cache:rm -fr $TMPDIR/react-*
ornpm start -- --reset-cache
.'); }是因为你的函数消息机制之类的有问题吗?
希望你能够帮助一下,看是否能够解决问题