IOS - React Native - 未处理的JS异常:SyntaxError [英] IOS - React Native - Unhandled JS Exception: SyntaxError
问题描述
每当我创建一个新的React Native项目时,我都会遇到问题。显示红色屏幕,并在xcode控制台中收到以下错误消息。
I have facing problem whenever I create a new React Native project. displayed red screen, and got following error message in the xcode console.
推荐答案
您好我遇到了同样的问题。
在这里找到解决方案:
https:// github。 com / facebook / react-native / issues / 11384
Hi I had the same problem. Found the solution in here : https://github.com/facebook/react-native/issues/11384
TL; DR:
react-native@0.39似乎有问题.0 ^
TL;DR : There seems to be a problem with react-native@0.39.0^
所以只需再次启动教程并使用:
react-native init AwesomeProject --version 0.38.0。
So just start the tutorial again and use: react-native init AwesomeProject --version 0.38.0.
这解决了我的问题。
玩得开心
这篇关于IOS - React Native - 未处理的JS异常:SyntaxError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!