[英]How to fix angular deprecate whitelistedNonPeerDependencies in favor of allowedNonPeerDependencies
I got the following warning in my cli and was wondering what was the new allowedNonPeerDependencies
doing different.我在 cli 中收到以下警告,想知道新的
allowedNonPeerDependencies
不同。
WARNING: Option "whitelistedNonPeerDependencies" is deprecated: Use "allowedNonPeerDependencies" instead.
Basically we should only rename whitelistedNonPeerDependencies
into allowedNonPeerDependencies
into the package.json
and ng-package.json
files.基本上我们应该只将
whitelistedNonPeerDependencies
重命名为allowedNonPeerDependencies
到package.json
和ng-package.json
文件中。
As said here it is to be "less racially charged" so nothing else to changes in the code.就像这里所说的那样,它是“减少种族歧视”,所以对代码的更改没有别的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.