@Microsmsm wrote:
I got this error when using
--prod
flag while buildingionic cordova build android --prod
I have the latest versions of everything in mypackage.json
anyone faced this problem before?$ ionic cordova build android --prod Running app-scripts build: --prod --iscordovaserve --externalIpRequired --nobrowser [15:51:12] build prod started ... [15:51:12] clean started ... [15:51:12] clean finished in 9 ms [15:51:12] copy started ... [15:51:12] ngc started ... [15:51:38] ngc finished in 26.14 s [15:51:38] preprocess started ... [15:51:38] deeplinks started ... [15:51:40] deeplinks finished in 1.80 s [15:51:40] optimization started ... [15:51:41] copy finished in 28.58 s [15:52:16] optimization finished in 36.17 s [15:52:16] preprocess finished in 37.98 s [15:52:16] webpack started ... [15:54:36] webpack finished in 140.11 s [15:54:36] sass started ... [15:54:36] uglifyjs started ... [WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date. Error: Unexpected token operator «=», expected punc «,» in C:\Users\Osama\ParentApp\www\build\main.js at line 109481, col 38, pos 4249270
Posts: 3
Participants: 2