question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set `quietDeps` option for dart-sass

See original GitHub issue

Update

dart-sass v1.35.1 supports quietDeps and verbose flags, and so you can pass it using sassOptions object on sass-loader options. Docs reference. See example below that now works.


Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

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:

const sassLoader = {
  loader: 'sass-loader',
  options: {
    sassOptions: {
      quietDeps: true,
    },
  },
};

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:27 (9 by maintainers)

github_iconTop GitHub Comments

11reactions
pataarcommented, Jun 15, 2021

Weirdly enough, I’ve set the option in sassOptions but still getting deprecation warnings.

Using 1.35.0 with the updated JS API: https://github.com/sass/sass/issues/3065#issuecomment-861086560

10reactions
gcangussucommented, Jun 16, 2021

I can confirm that on my project quietDeps flag is working correctly since dart-sass 1.35.1

{
  loader: require.resolve('sass-loader'),
  options: {
    sassOptions: { quietDeps: true },
  },
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Dart Sass Command-Line Interface
The Dart Sass executable can be invoked in one of two modes. ... These options control how Sass loads its input files and...
Read more >
Disable Dart SASS Warnings Produced By External Theme File
The quietDeps option isn't exposed yet to the Node.js API. In the meantime you can downgrade to sass 1.32 without too many changes....
Read more >
sass-loader - webpack - JS.ORG
sass-loader requires you to install either Dart Sass, Node Sass on your own (more documentation can be found below) or Sass Embedded. This...
Read more >
Using Gulp with Dart Sass - Zell Liew
Setting up Gulp. First, you need to install Gulp. npm install gulp --save-dev. Second, you need to create a file called gulpfile.js inside ......
Read more >
sass | Dart Package - Pub.dev
The old API will continue to be supported until Dart Sass 2.0.0, ... Add a quietDeps option which silences compiler warnings from stylesheets...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found