Warning : Deprecation $weight: Passing a number without unit % (60) is deprecated
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
Hello,
I installed Angular 15(fresh install) and create a new project with the default boiler plate and I have the warning below when starting the project. Any idea where this is coming from? I’ve also tried upgrading one other project, on another computer, from Angular 14 to 15 and I get the same warning.
**ng: Module Warning (from ./node_modules/sass-loader/dist/cjs.js): Deprecation $weight: Passing a number without unit % (60) is deprecated.
To preserve current behavior: $weight * 1%
More info: https://sass-lang.com/d/function-units
@material/slider/_slider-theme.scss 77:5 @use node_modules/@angular/material/slider/_slider-theme.scss 3:1 @use node_modules/@angular/material/core/density/private/_all-density.scss 25:1 @forward @angular/_index.scss 18:1 @use src/paprika.scss 4:1 root stylesheet**
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 15.0.0
Node: 18.12.1
Package Manager: npm 8.19.2
OS: darwin arm64
Angular: 15.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1500.0
@angular-devkit/build-angular 15.0.0
@angular-devkit/core 15.0.0
@angular-devkit/schematics 15.0.0
@schematics/angular 15.0.0
rxjs 7.5.7
typescript 4.8.4
Anything else?
No response
Issue Analytics
- State:
- Created 10 months ago
- Reactions:7
- Comments:9 (2 by maintainers)

Top Related StackOverflow Question
Angular Material 15.0.1 hasn’t been released yet. It should be some time on Wednesday.
It’s gone after installing
"@angular/material": "^15.0.1",Runnpm install -S @angular/material@15.0.1