简体   繁体   English

在纱线中沉默弃用警告

[英]Silence Deprecation Warnings in Yarn

I'm getting some warnings when I run yarn watch command.我在运行 yarn watch 命令时收到一些警告。

Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

They are thrown by my node_modules folder so I can't change them.它们由我的 node_modules 文件夹抛出,所以我无法更改它们。 Is there a way to suppress them when I run yarn watch command?当我运行 yarn watch 命令时,有没有办法抑制它们? I've found some information about yarnrc but nothing useful.我找到了一些关于 yarnrc 的信息,但没有任何用处。

dart-sass has deprecated / in favor of math.div. dart-sass 已弃用/支持 math.div。 Compiling https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss now results with many sass warnings.编译https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss现在会产生许多 sass 警告。

try to update, UPDATE: Solved by manually downgrading sass to 1.32.*尝试更新,更新:通过手动将 sass 降级到 1.32 解决。*

Did you try to look at this ?你试过看这个吗? You told about yarnrc.你谈到了 yarnrc。 I guess you can use this.我想你可以用这个。

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

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