error: bundling failed: TypeError: Cannot read property 'throwIfClosureRequired' of undefined

在 react-native start 命令之后碰到这个错误。

处理方法:

修改所在工程目录下的package.json文件

把"babel-preset-react-native": "5.0.0" 改成 "babel-preset-react-native": "4.0.0" 

然后

然后运行npm install


更多信息参考:

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


猜你喜欢

转载自blog.csdn.net/dearlaoyuan/article/details/80039598