Got JS Exception: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
See original GitHub issueI 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
and Devices show
Do you know what is exception?Please help me.thank you.
Reproducible Demo
Issue Analytics
- State:
- Created 5 years ago
- Comments:22 (4 by maintainers)
Top GitHub Comments
Getting back to 0.57.8 version solve this
React Native Environment Info: System: OS: macOS 10.14 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 107.77 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 11.14.0 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 Android SDK: API Levels: 24, 26 Build Tools: 26.0.1 System Images: a…s_playstore | Google Play Intel x86 Atom Sys… IDEs: Android Studio: 2.3 AI-162.4069837 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.8 => 0.59.8 npmGlobalPackages: react-native-cli: 2.0.1