Downgrading es2015 to es5
Edit appbuilder/outputs/your-project/tsconfig.json
, change "target": "es2015"
to "target": "es5"
then try to build again:
ionic cordova build android
or Downgrading the @angular-devkit/build-angular version
Edit appbuilder/outputs/your-project/package.json
,
change
"@angular-devkit/build-angular": "~0.803.20",
to
"@angular-devkit/build-angular": "~0.801.2",
then run this command:
npm install
then try to build again:
ionic cordova build android
source: https://github.com/ionic-team/ionic-cli/issues/4262