When I run building command for android :
ionic cordova build android --prod --release
Then I get the following error message :
[14:22:53] build prod started ...
[14:22:53] clean started ...
[14:22:53] clean finished in 4 ms
[14:22:53] copy started ...
[14:22:53] ngc started ...
[14:22:59] ngc finished in 5.41 s
[14:22:59] preprocess started ...
[14:22:59] deeplinks started ...
[14:22:59] deeplinks finished in 273 ms
[14:22:59] optimization started ...
[14:23:00] copy finished in 6.74 s
[14:23:07] optimization finished in 7.77 s
[14:23:07] preprocess finished in 8.04 s
[14:23:07] webpack started ...
[14:23:12] webpack finished in 4.91 s
[14:23:12] sass started ...
[14:23:12] uglifyjs started ...
[14:23:12] sass finished in 837 ms
[14:23:12] cleancss started ...
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova).
Error: Unexpected token operator «=», expected punc «,» in G:\ionicProjects\***-app\www\build\main.js at line 73330, col 38, pos 2600834
Ionic Info :
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 1.3.6
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.1.1
System:
Node : v6.11.0
OS : Windows 8.1
npm : 3.10.10
Cordova Plugins :
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-dialogs 1.3.3 "Notification"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-x-socialsharing 5.1.8 "SocialSharing"
cordova.plugins.diagnostic 3.6.5 "Diagnostic"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
mx.ferreyra.callnumber 0.0.2 "Cordova Call Number Plugin"
uk.co.workingedge.phonegap.plugin.launchnavigator 4.0.3 "Launch Navigator"
How can I solve this problem ?