IOS - React Native - Unhandled JS Exception: SyntaxError

I am having a problem when I create a new React Native project. a red screen appeared and received the following error message in the xcode console.

enter image description here

enter image description here

+3
source share
3 answers

Hi, I had the same problem. Found solution here: https://github.com/facebook/react-native/issues/11384

TL DR: It seems that the problem is related to the response -native@0.39.0 ^

So, just run the tutorial and use: response-native init AwesomeProject - version 0.38.0.

This solved the problem for me.

Good luck

+4
source

Perhaps you are using the ** operator somewhere. Use Math.pow instead. ** Not supported when debug js is remotely disconnected for any reason. https://github.com/facebook/react-native/issues/11371

+2
source

try it

 react-native init AwesomeProject cd AwesomeProject react-native run-ios 
-2
source

Source: https://habr.com/ru/post/1261081/


All Articles