Skip to content

Build options stylePreprocessorOptions->sass->silenceDeprecations no longer working after upgrade to Angular 20. #30567

Closed as not planned
@dailytabs

Description

@dailytabs

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

                        "stylePreprocessorOptions": {
                            "sass": {
                                "silenceDeprecations": [
                                    "mixed-decls",
                                    "color-functions",
                                    "global-builtin",
                                    "import"
                                ]
                            }
                        },

None of that works anymore - warnings all over the place. Can't resolve any of this until bootstrap 6, so these need silenced.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
etc.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 20.0.3
Node: 22.16.0
Package Manager: npm 11.4.1
OS: linux x64

Angular: 20.0.4
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.2000.3
@angular-devkit/core         20.0.3
@angular-devkit/schematics   20.0.3
@angular/build               20.0.3
@angular/cdk                 20.0.3
@angular/cli                 20.0.3
@angular/youtube-player      20.0.3
@schematics/angular          20.0.3
rxjs                         7.8.2
typescript                   5.8.3
zone.js                      0.15.0

Anything else?

Appears that the new builder ignores these options.
Nothing related appears on the Update Guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions