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.

Unexpected keyword 'const'.

See original GitHub issue

Is this a bug report?

Yes, this is a bug report. When i reinstall node_module, then i re-run app by react-native run-android. I found this issue. I re-run with debug mode, app will work. When I run app without debug mode, app won’t work.

screenshot_20171212-131238

Environment

Environment: OS: macOS High Sierra 10.13.2 Node: 9.2.1 Yarn: 1.3.2 npm: 5.5.1 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed) react: 16.0.0-alpha.12 => 16.0.0-alpha.12 react-native: 0.48.4 => 0.48.4

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dairdrcommented, Mar 14, 2018

I have this issue too

0reactions
dairdrcommented, Mar 14, 2018

I ran a new fresh project using “react-native”: “0.52.0”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected keyword 'const'. Const declarations are not ...
I use webpack@4.28.4 and babel@7.2.0 in my project. ... I tried to modify @babel/env to fix this error:. "presets": [ [ "@babel/env", {...
Read more >
bundle.js:1 SyntaxError: Unexpected keyword 'const'. ...
Possible Solution: You've excluded "node_modules" in babel-loader settings, so it doesn't process your external dependencies.
Read more >
Vue-cli and iOS 9 SyntaxError: Unexpected keyword 'const' ...
On iOS 9 there is an error: SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode. The const keyword ......
Read more >
JavaScript : UglifyJS throws unexpected token: keyword (const ...
JavaScript : UglifyJS throws unexpected token : keyword ( const ) with node_modules [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] ...
Read more >
const - JavaScript - MDN Web Docs - Mozilla
The const declaration creates block-scoped constants, much like variables declared using the let keyword. The value of a constant can't be ...
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