You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on May 4, 2022. It is now read-only.
Uncaught SyntaxError in vendor.js when running on Android #658
Describe the Bug
Even the simplest myApp Ionic4/Angular6 demo does not proceed past the loading index.html when running on Android (device or emulator). Browser and iOS are fine.
Steps to Reproduce
Steps to reproduce the behavior:
0. Make sure an Android SDK is installed and in the PATH and env variables
Create a test app, e.g. via ionic start myApp tabs --type=angular
Start logcat e.g. from command line via adb logcat
Add the Android platform via ionic cordova platform add android
Run ionic cordova emulate android
App starts but shows a blank white page (which is the index.html)
Related Log
During app start up in the emulator the logcat logs the following error which I think is the root cause for the app not continuing loading.
D/SystemWebChromeClient( 6353): http://localhost:8080/vendor.js: Line 71984 : Uncaught SyntaxError: Use of const in strict mode.
I/chromium( 6353): [INFO:CONSOLE(71984)] "Uncaught SyntaxError: Use of const in strict mode.", source: http://localhost:8080/vendor.js (71984)
D/CordovaWebViewImpl( 6353): onPageFinished(http://localhost:8080/)
Expected Behavior
App should finish starting up.
Additional Context
This error only happens on Android devices and the emulator, but not when starting the app on Android via the Ionic DevApp tool.
This is not a Ionic 3 bug.
Bug is still very much alive in Ionic 4 beta 18. Someone should revert this to original bug and maybe take a look on ionic bot algo.
Activity
nextbyn commentedon Nov 30, 2018
Post your tsconfig.json in my case whas the target value
shaxxx commentedon Dec 14, 2018
This is not a Ionic 3 bug.
Bug is still very much alive in Ionic 4 beta 18. Someone should revert this to original bug and maybe take a look on ionic bot algo.