react-native: Got JS Exception: Unexpected keyword 'const'. Const declarations are not supported in strict mode.

I want to upgrade RN to 0.57.0 from 0.38 my step is: 1.npm install --save react-native@0.57.0 2.react-native run-android

Environment

React Native Environment Info: System: OS: macOS High Sierra 10.13.4 CPU: (8) x64 Intel® Core™ i7-4750HQ CPU @ 2.00GHz Memory: 40.00 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.6.0 - /usr/local/bin/node npm: 6.7.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: Android SDK: API Levels: 22, 23, 24, 25, 26, 27, 28 Build Tools: 23.0.1, 23.0.3, 27.0.3, 28.0.3 System Images: android-28 | Google APIs Intel x86 Atom IDEs: Xcode: /undefined - /usr/bin/xcodebuild npmPackages: react: ^16.5.2 => 16.7.0 react-native: ^0.57.0 => 0.57.0 npmGlobalPackages: react-native-cli: 2.0.1

Description

2019-01-31 10 34 31

and Devices show device-2019-01-31-104119

Do you know what is exception?Please help me.thank you.

Reproducible Demo

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (4 by maintainers)

Most upvoted comments

Getting back to 0.57.8 version solve this