1
votes

I am using the Ionic Cordova build Android --prod and I get this error:

Error message

Ionic Info:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 25.2.5
    Node              : v10.8.0
    npm               : 6.3.0
    OS                : macOS High Sierra
2

2 Answers

1
votes

You need to use @ionic/app-scripts 3.1.1. That was a bug on 3.1.0. You can see it here

1
votes
$ npm install @ionic/app-scripts@latest --save-dev