If I try to test-build my application with ng build --prod --aot I get the following, quite short, error message:
$ ng build --prod
After upgrading to angular 8 during production build, I was getting "Error in common-es2015.xxx.js from Terser Unexpected token: Punc(;) [common-es2015.xxx.js] "
After setting sourceMap to true in angular.json file - configurations- production section, compiler displayed actual file name with error line number. It was due to an extra semicolon in a variable declaration in the class file.
putGamma: any = 0.0;;