報錯信息
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