I'm getting the same error recently. The project was built successfully and released to app store. But when I tried to update it with a defect fix, it failed to build at:
ionic cordova build android --prod --release.
However
ionic cordova build android --dev
built successfully.
If anybody has an idea, please help.
Here is the error msg from : ionic cordova build --prod:
C:\Development\angular2\iinsight>ionic cordova build android --prod
Running app-scripts build: --prod --iscordovaserve --externalIpRequired --nobrowser
[08:14:52] build prod started ...
[08:14:52] clean started ...
[08:14:52] clean finished in 3 ms
[08:14:52] copy started ...
[08:14:52] ngc started ...
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may
be out of date.