Solve the error message about ionic3 enabling the white screen Console: Uncaught SyntaxError Use of const in strict mode., ionic3uncaught
Today, I upgraded my project from ionic2 to ionic3, and ionic serve runs on the webpage without any errors.
However, packaging the project as an android apk keeps stuck on the white screen of the startup page. Later, the error message "Uncaught SyntaxError Use of const in strict mode" was displayed on the android studio console. some inexplicable bugs caused the apk to fail to run normally on the machine after packaging.
Find the solution.
1. Add this plug-in to the project first.
Cordova plugin add cordova-plugin-crosswalk-webview
2. Clear the project
Cordova clean
3. Added support for the Android platform
Cordova platform add android
4. The package is generated successfully and runs on the android machine.