0

After upgrading to the latest closure compiler jar I am getting this error:

/home/users/****/js/lib/soyutils.js:1685: 

WARNING - [JSC_BAD_JSDOC_ANNOTATION] Parse error. illegal use of unknown JSDoc tag "consistentIdGenerator"; ignoring it
 * @consistentIdGenerator

How can I fix this issue?

sanchez
  • 4,519
  • 3
  • 23
  • 53

1 Answers1

1

According to my research you'll want to convert @consistentIdGenerator to

@idGenerator {consistent}.

It seems that @consistentIdGenerator has been deprecated:

NOTE: There are three deprecated variants: @idGenerator, @consistentIdGenerator, and @stableIdGenerator. These map to @idGenerator {unique}, @idGenerator {consistent}, and @idGenerator {stable}. Support for these will be removed in a future compiler release.

Dorthy Ann from The Magic School Bus

Graham P Heath
  • 7,009
  • 3
  • 31
  • 45
  • Thank you for your answer. I am wondering if it would be a better idea to upgrade to the fresher soyutils.js but I can't find any official download page. – sanchez Aug 07 '19 at 08:25
  • @san.chez I think soyutils.js is deprecated, replaced by `soyutils_usegoog.js`. Although I admit, I don't use soy myself. Ref: https://stackoverflow.com/questions/8139945/goog-string-is-overridden-when-i-use-soyutils-js – Graham P Heath Aug 07 '19 at 15:17