Compressing/Minifying script.js resulted in an error and won't be compressed/minified

I get this error running:
ionic cordova build --release android
in all my Angularjs scripts, so there is no minified js scripts in the apk.
How can I check what’s the problem here?
My angular app runs with ng-strict-di directive, it should be minify ready…

npm 5.1.0
node v8.9.4
cordova 8.0.0
ionic 3.19.1