'Silence Deprecation Warnings in Yarn

I'm getting some warnings when I run yarn watch command.

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. Is there a way to suppress them when I run yarn watch command? I've found some information about yarnrc but nothing useful.



Solution 1:[1]

dart-sass has deprecated / in favor of math.div. Compiling https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss now results with many sass warnings.

try to update, UPDATE: Solved by manually downgrading sass to 1.32.*

Solution 2:[2]

Did you try to look at this? You told about yarnrc. I guess you can use this.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eduard
Solution 2 kingan