-
-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set quietDeps
option for dart-sass
#954
Comments
Because we use |
is dart API, you need to open an issue in |
Thank you, will do that |
Let's close here (we can't fix it in our code), when |
Weirdly enough, I've set the option in Using |
Aye, I still can't get rid of these warnings. I know I'm using stuff which "sass" wants to fill my screen with dire warnings about, but all that is really not my fault and I can't do anything about it. The result is screens of garbage output from sass which just gets in the way of messages which could possibly be important to me. Up to and including 1.32.12. I wasn't harassed because someone thinks some dependency over which I've no control over broke some rules I don't care about. Later versions remain unusable: a shot to the foot. |
We have this options https://webpack.js.org/configuration/other-options/#ignorewarnings, just put simple regexp and it will fix the problem |
That shouldn't, however, be needed since they added the JS API option to silence these warnings… (as @pataar mentioned). |
@kubijo hm, if they added this option, it should work, we just clone your options and pass to sass https://github.com/webpack-contrib/sass-loader/blob/master/src/utils.js#L128, I will look at near future |
This might be the same issue: sass/dart-sass#1360. Not sure though. But as @alexander-akait mentioned, It wouldn't require any changes to |
https://github.com/sass/dart-sass/releases/tag/1.35.1 has been released, which might fix the issue. Testing this later today. |
Anybody can check this, should I check it (because it in my todo)? |
I can confirm that on my project {
loader: require.resolve('sass-loader'),
options: {
sassOptions: { quietDeps: true },
},
} |
@gcangussu thanks |
It doesn't seem like it did anything for me… I'm suspecting yarn's PNP to be tripping up the detection, but I have no idea how to check that |
@kubijo try to remove lock file and install deps again, ideally you should setup bot for regeneration lock files, otherwise you will have a lot of old transitive deps |
I'm pretty sure that is not the case here as yarn flattens the hierarchy and do have only one version λ yarn why sass
└─ root-workspace-0b6124@workspace:.
└─ sass@npm:1.35.1 (via npm:1.35.1) |
It seems |
@hamzahsn It shouldn't be possible, because it's part of @alexander-akait Can you have a look and confirm that it works? On my side even after Thanks 😉 |
Here confirmation from other developers #954 (comment), if you need personal help with your project please share link on the project or create reproducible example |
@alexander-akait I will have a look (again) later. Thanks for answering as usual 😉 |
@xavierfoucrier could you share some code so we can reproduce your project? |
@hamzahsn I will try again and share if it doesn't work. I am using Foundation framework with |
Any solution to this? Even setting |
@carlosHerz I can think on some possibilities for those warnings:
|
In my case it appears the sass compiler is wrongly flagging dependencies as my code because Anyone have any ideas why this might be the case? |
Hi, I'm getting the same problem after trying to migrate COP from At the moment, with I've read through the Appreciate i'm late to the party but what's the latest on this? |
Update
dart-sass v1.35.1 supports
quietDeps
andverbose
flags, and so you can pass it usingsassOptions
object on sass-loader options. Docs reference. See example below that now works.Documentation Is:
Please Explain in Detail...
It is not clear how to set the
quietDeps
flag on the sass options. I have tried the below which doesn't work:This option is useful since deprecation of division with
/
. Many dependencies trigger the deprecation warning, and these warnings are making very difficult to see the warnings of my own code.Your Proposal for Changes
I need some help in figuring how to configure this. Once figured out I can open a PR documenting it.
The text was updated successfully, but these errors were encountered: