Ionic Cordova Build issue with --prod

I’m facing this issue while generating the APK for android using this command ionic cordova build android --prod

ERROR in scripts.4dd46e4e75fa5c13961c.js from Terser
Unexpected token: punc (.) [scripts.4dd46e4e75fa5c13961c.js:2413,45]
[ERROR] An error occurred while running subprocess ng.

Kindly help ASAP