繁体   English   中英

警告:选项已用“否”前缀声明

[英]Warns: Option has been declared with a 'no' prefix

我将角度更新为ver.14。 当我使用 ng test 我有警告

Warning: 'no-cache' option has been declared with a 'no' prefix in the schema.Please file an issue with the author of this package.
Warning: 'noStackTrace' option has been declared with a 'no' prefix in the schema.Please file an issue with the author of this package.

我该如何解决? ps 我用笑话

在 Angular 14 中,引入了yargs来解析 CLI 参数(参见#22778 )。

yargs以不同的方式处理以“no”为前缀的参数,因此解析行为出现了回归(参见#23397 )。 #23405中,引入了一个临时修复程序,这会导致您看到警告。

您可以使用倒置选项标志或等到 Angular 团队创建更永久的修复程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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