Uglify Failing on run prod


#1

has anyone ever seen an error like this on ionic cordova run android --prod? (ignore the warning in yellow)

without the prod flag everything works (as there is no uglify step).

It’s a bummer that the error give so little information and what is causing it.


#2

What’s your ionic info?


#3

I identified the error, my target in tsconfig was set to es2015 (=es6) which is incompatible with uglify (requires es5).