[英]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: 升级到最新的闭包编译器jar后,出现此错误:
/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 根据我的研究,您需要将
@consistentIdGenerator
转换为
@idGenerator {consistent}
. @idGenerator {consistent}
。
It seems that @consistentIdGenerator
has been deprecated: 似乎
@consistentIdGenerator
已被弃用:
NOTE: There are three deprecated variants: @idGenerator, @consistentIdGenerator, and @stableIdGenerator.
注意:不建议使用三种变体:@ idGenerator,@ consistentIdGenerator和@stableIdGenerator。 These map to @idGenerator {unique}, @idGenerator {consistent}, and @idGenerator {stable}.
这些映射到@idGenerator {unique},@ idGenerator {consistent}和@idGenerator {stable}。 Support for these will be removed in a future compiler release.
在将来的编译器版本中将删除对这些功能的支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.