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.

Warning : Deprecation $weight: Passing a number without unit % (60) is deprecated

See original GitHub issue

Which @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:closed
  • Created 10 months ago
  • Reactions:7
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
crisbetocommented, Nov 29, 2022

Angular Material 15.0.1 hasn’t been released yet. It should be some time on Wednesday.

2reactions
btxtigercommented, Dec 1, 2022

It’s gone after installing "@angular/material": "^15.0.1", Run npm install -S @angular/material@15.0.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing a number without unit % (100) is deprecated - Stack ...
I use Bootstrap v5.2.2 with Sass v1.56.0. There is my full package.json { "name": "xx", "version" ...
Read more >
Deprecation $weight: Passing a number without unit % (100) i
js):Deprecation $weight: Passing a number without unit % (100) is deprecated. To preserve current behavior: $weight * 1%. More info: https://sass-lang.com/d/ ...
Read more >
Bug #1995813 “Deprecated Sass warning: $weight without unit”
Deprecation Warning : $weight: Passing a number without unit % (100) is deprecated. To preserve current behavior: $weight * 1%.
Read more >
sass warning, can't find the cause of the problem
js): Deprecation $weight: Passing a number without unit % (100) is deprecated. To preserve current behavior: $weight * 1%.
Read more >
Dart Sass: lib/src/functions/color.dart - Fossies
assertNumber("weight"); 53 if (arguments[0] is SassNumber) { 54 ... hasUnits) { 462 warn( 463 "\$$name: Passing a number with unit ${number.
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