Unexpected keyword 'const'.
See original GitHub issueIs 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.
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:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have this issue too
I ran a new fresh project using “react-native”: “0.52.0”