NgAnnotate - Warning: StringMap String Key

I get this warning when using Grunt and grunt-ng-annotate.

There is no link in the warning that contains the error in the file, which makes it difficult to debug it.

Any ideas?

+5
source share
1 answer

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.

+6
source

Source: https://habr.com/ru/post/1271389/


All Articles