常见错误

内核文件最大大小不足

{"code":"EMFILE","errno":"EMFILE","syscall":"watch null","filename":null}

解决方案

https://github.com/facebook/react-native/issues/9309

IP出错

报错信息

 Assertion failure in -[RCTBatchedBridge loadSource:](),/node_modules/react-native/React/Base/RCTBatchedBridge.m:189

解决方案http://stackoverflow.com/questions/38780325/running-react-native-app-on-ios-device-using-offline-bundle

主要是因为IP的问题,把Xcode编译的版本从debug改成release即可

typeError

界面显示的是 unhandler js TypeError

然后xcode控制台显示

[tid:main] Unhandled JS Exception: TypeError

估计是因为缓存问题

./node_modules/react-native/packager/packager.sh start --reset-cache

就可以了


后来...又遇到了....

原版的babelrc是有react,es2015和react-native

后面把react和es2015去掉就ok了

参考http://stackoverflow.com/questions/35563025/new-react-native-app-has-typeerror-babelhelpers-typeof-is-not-a-function-ios

© 404mzk all right reserved,powered by Gitbook该文件修订时间: 2017-04-09 09:07:59

results matching ""

    No results matching ""