The problem turned out to be using ES6 notation, in which case the arrow functions ( => ) allow by default .
I have not looked in detail why ngAnnotate does not support this.
To find where the problems were, I tried the ngAnnotate warning with grunt-force, and later in the uglify assembly complained about ES6 syntax in more detail.
iss42 source share