IOS - React Native - 未处理的JS异常:SyntaxError [英] IOS - React Native - Unhandled JS Exception: SyntaxError

查看:104
本文介绍了IOS - React Native - 未处理的JS异常: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆