Skip to content
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

Quiet-deps flag still showing "Global built-in functions are deprecated and will" deprecation warning (not others) #2418

Open
BrumGB opened this issue Oct 29, 2024 · 1 comment
Labels
bug cosmetic Doesn't affects CSS semantics needs info

Comments

@BrumGB
Copy link

BrumGB commented Oct 29, 2024

Hey, annoyingly we're unable to upgrade our third party dependencies for the time being but would love to get our frontend working with the latest version of dart-sass 1.8.*

We're currently running our sass built script as so
sass --load-path=./node_modules --quiet-deps scss/uos.scss css/uos.css

This works great and the dependencies don't throw warnings like they do when omitting --quiet-deps however, we do still seem to get this error coming through.

Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use meta.type-of instead.

More info and automated migrator: https://sass-lang.com/d/import

    ╷
159 │       @if(type-of($grid-margin-gutters) == 'map' and map-has-key($grid-margin-gutters, $-zf-size)) {
    │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/foundation-sites/scss/xy-grid/_classes.scss 159:11  @content

This only seems to happen with this specific deprecation warning Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.

I can't seem to find out why this is happening looking through the docs. I'm aware I can add the flag --silence-deprecation for the above warning, but I would ideally like to keep this for our code (just not the third party dependencies)

Thank you, and apologies if I've missed anything.

@BrumGB BrumGB changed the title Quiet-deps not working with "Global built-in functions are deprecated and will" deprecation warning Quiet-deps still showing "Global built-in functions are deprecated and will" deprecation warning (not others) Oct 29, 2024
@BrumGB BrumGB changed the title Quiet-deps still showing "Global built-in functions are deprecated and will" deprecation warning (not others) Quiet-deps flag still showing "Global built-in functions are deprecated and will" deprecation warning (not others) Oct 29, 2024
@nex3
Copy link
Contributor

nex3 commented Oct 29, 2024

Can you provide a repo that can reproduce this?

@nex3 nex3 added bug needs info cosmetic Doesn't affects CSS semantics labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cosmetic Doesn't affects CSS semantics needs info
Projects
None yet
Development

No branches or pull requests

2 participants