美文网首页
[React-Native Error]Android

[React-Native Error]Android

作者: laznrbfe | 来源:发表于2016-12-29 00:08 被阅读73次

报错信息

SyntaxError: Strict mode does not allow function declarations in a lexically nested statement

解决

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

  • 打开node_modules\react-native\Libraries\Core\InitializeCore.js
  • 找到112行,把 function handleError(e, isFatal)改成var handleError = function(e, isFatal)
  • npm start -- --reset-cache

相关文章

网友评论

      本文标题:[React-Native Error]Android

      本文链接:https://www.haomeiwen.com/subject/jnwimttx.html