question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
agustin107commented, Feb 22, 2019

Getting back to 0.57.8 version solve this

0reactions
SlowDonycommented, May 21, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: Unexpected keyword 'const'. Const declarations ...
SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode. Issue #9712 · babel/babel · GitHub.
Read more >
bundle.js:1 SyntaxError: Unexpected keyword 'const'. Const ...
js:1 SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode. My webpack.config.json has this rule: rules: ...
Read more >
Vue-cli and iOS 9 SyntaxError: Unexpected keyword 'const ...
Problem. On iOS 9 there is an error: SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.
Read more >
let & const tests
Info This browser Chrome 35 Does const declare a variable? No Yes Does const declare a variable? (strict mode) No SyntaxError: Use of const in...
Read more >
SyntaxError: missing = in const declaration - JavaScript | MDN
The JavaScript exception "missing = in const declaration" occurs when a const declaration was not given a value in the same statement (like ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found