iwgang / GankCamp-React-Native

gank.io (干货集中营) react-native版本,同时支持Android和iOS
MIT License
251 stars 64 forks source link

iOS真机运行报错 #6

Open vistaLin opened 8 years ago

vistaLin commented 8 years ago

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. 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.'); }

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

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

iwgang commented 8 years ago

对比下你机器上的这两个版本,之前我换之前也运行不了,最后版本号发成一致的后就可以了

"react": "^15.0.2",
"react-native": "^0.26.1",
vistaLin commented 8 years ago
2016-06-30 13 33 13

是一致的啊

StarksJohn commented 8 years ago

作者能否加下我QQ: 397866153, 以后 多交流啊

iwgang commented 8 years ago

不好意思,环境问题只能自己解决

另外我目前精力也没放RN上了

vistaLin commented 8 years ago

是环境的问题啊!谢谢了哈