簡體   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