简体   繁体   中英

Closure Compiler (soy) - [JSC_BAD_JSDOC_ANNOTATION] Parse error. illegal use of unknown JSDoc tag “consistentIdGenerator”

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?

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.

魔术校车上的多西·安

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM