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

iOS真机运行报错 #6

Open
vistaLin opened this issue Jun 30, 2016 · 5 comments
Open

iOS真机运行报错 #6

vistaLin opened this issue Jun 30, 2016 · 5 comments

Comments

@vistaLin
Copy link

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

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

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

@iwgang
Copy link
Owner

iwgang commented Jun 30, 2016

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

"react": "^15.0.2",
"react-native": "^0.26.1",

@vistaLin
Copy link
Author

2016-06-30 13 33 13

是一致的啊

@StarksJohn
Copy link

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

@iwgang
Copy link
Owner

iwgang commented Jul 5, 2016

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

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

@vistaLin
Copy link
Author

vistaLin commented Jul 5, 2016

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

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

3 participants