Solve the error message about ionic3 enabling the white screen Console: Uncaught SyntaxError Use of const in strict mode., ionic3uncaught

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.