Closed Bullsized closed 1 year ago
Entire build log:
Build at: 2023-01-16T14:38:38.094Z - Hash: a056bea4cbf4fff3 - Time: 64382ms
./src/styles.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
var(--palette-primary-500-rgb) is not a color. Falling back to "dark" tone.
@material\theme\_theme-color.scss 67:5 tone()
@material\ripple\_ripple-theme.scss 535:5 states-opacity()
node_modules\@angular\material\list\_interactive-list-theme.scss 28:18 private-interactive-list-item-state-colors()
node_modules\@angular\material\list\_list-theme.scss 20:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 193:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 233:3 disable-mdc-fallback-declarations()
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 192:3 using-mdc-theme()
node_modules\@angular\material\list\_list-theme.scss 17:3 color()
node_modules\@angular\material\list\_list-theme.scss 74:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\list\_list-theme.scss 68:3 theme()
node_modules\@angular\material\core\theming\_all-theme.scss 59:5 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\core\theming\_all-theme.scss 44:3 all-component-themes()
angular-material-css-vars\_main.scss 57:5 init-mat-theme()
angular-material-css-vars\_main.scss 97:3 init-material-css-vars()
src\styles.scss 8:1 root stylesheet
./src/styles.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
var(--palette-primary-500-rgb) is not a color. Falling back to "dark" tone.
@material\theme\_theme-color.scss 67:5 tone()
@material\ripple\_ripple-theme.scss 535:5 states-opacity()
node_modules\@angular\material\list\_interactive-list-theme.scss 28:18 private-interactive-list-item-state-colors()
node_modules\@angular\material\list\_list-theme.scss 20:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 193:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 233:3 disable-mdc-fallback-declarations()
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 192:3 using-mdc-theme()
node_modules\@angular\material\list\_list-theme.scss 17:3 color()
node_modules\@angular\material\list\_list-theme.scss 74:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\list\_list-theme.scss 68:3 theme()
node_modules\@angular\material\core\theming\_all-theme.scss 59:5 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\core\theming\_all-theme.scss 44:3 all-component-themes()
node_modules\@angular\material\core\color\_all-color.scss 15:3 all-component-colors()
angular-material-css-vars\_main.scss 72:9 init-mat-theme()
angular-material-css-vars\_main.scss 97:3 init-material-css-vars()
src\styles.scss 8:1 root stylesheet
./src/styles.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
var(--palette-primary-500-rgb) is not a color. Falling back to "dark" tone.
@material\theme\_theme-color.scss 67:5 tone()
@material\ripple\_ripple-theme.scss 535:5 states-opacity()
node_modules\@angular\material\list\_interactive-list-theme.scss 35:18 private-interactive-list-item-state-colors()
node_modules\@angular\material\list\_list-theme.scss 20:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 193:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 233:3 disable-mdc-fallback-declarations()
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 192:3 using-mdc-theme()
node_modules\@angular\material\list\_list-theme.scss 17:3 color()
node_modules\@angular\material\list\_list-theme.scss 74:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\list\_list-theme.scss 68:3 theme()
node_modules\@angular\material\core\theming\_all-theme.scss 59:5 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\core\theming\_all-theme.scss 44:3 all-component-themes()
angular-material-css-vars\_main.scss 57:5 init-mat-theme()
angular-material-css-vars\_main.scss 97:3 init-material-css-vars()
src\styles.scss 8:1 root stylesheet
./src/styles.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
var(--palette-primary-500-rgb) is not a color. Falling back to "dark" tone.
@material\theme\_theme-color.scss 67:5 tone()
@material\ripple\_ripple-theme.scss 535:5 states-opacity()
node_modules\@angular\material\list\_interactive-list-theme.scss 35:18 private-interactive-list-item-state-colors()
node_modules\@angular\material\list\_list-theme.scss 20:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 193:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 233:3 disable-mdc-fallback-declarations()
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 192:3 using-mdc-theme()
node_modules\@angular\material\list\_list-theme.scss 17:3 color()
node_modules\@angular\material\list\_list-theme.scss 74:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\list\_list-theme.scss 68:3 theme()
node_modules\@angular\material\core\theming\_all-theme.scss 59:5 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\core\theming\_all-theme.scss 44:3 all-component-themes()
node_modules\@angular\material\core\color\_all-color.scss 15:3 all-component-colors()
angular-material-css-vars\_main.scss 72:9 init-mat-theme()
angular-material-css-vars\_main.scss 97:3 init-material-css-vars()
src\styles.scss 8:1 root stylesheet
./src/styles.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
var(--palette-primary-500-rgb) is not a color. Falling back to "dark" tone.
@material\theme\_theme-color.scss 67:5 tone()
@material\ripple\_ripple-theme.scss 535:5 states-opacity()
node_modules\@angular\material\list\_interactive-list-theme.scss 36:18 private-interactive-list-item-state-colors()
node_modules\@angular\material\list\_list-theme.scss 20:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 193:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 233:3 disable-mdc-fallback-declarations()
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 192:3 using-mdc-theme()
node_modules\@angular\material\list\_list-theme.scss 17:3 color()
node_modules\@angular\material\list\_list-theme.scss 74:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\list\_list-theme.scss 68:3 theme()
node_modules\@angular\material\core\theming\_all-theme.scss 59:5 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\core\theming\_all-theme.scss 44:3 all-component-themes()
angular-material-css-vars\_main.scss 57:5 init-mat-theme()
angular-material-css-vars\_main.scss 97:3 init-material-css-vars()
src\styles.scss 8:1 root stylesheet
./src/styles.scss - Warning: Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
var(--palette-primary-500-rgb) is not a color. Falling back to "dark" tone.
@material\theme\_theme-color.scss 67:5 tone()
@material\ripple\_ripple-theme.scss 535:5 states-opacity()
node_modules\@angular\material\list\_interactive-list-theme.scss 36:18 private-interactive-list-item-state-colors()
node_modules\@angular\material\list\_list-theme.scss 20:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 193:5 @content
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 233:3 disable-mdc-fallback-declarations()
node_modules\@angular\material\core\mdc-helpers\_mdc-helpers.scss 192:3 using-mdc-theme()
node_modules\@angular\material\list\_list-theme.scss 17:3 color()
node_modules\@angular\material\list\_list-theme.scss 74:7 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\list\_list-theme.scss 68:3 theme()
node_modules\@angular\material\core\theming\_all-theme.scss 59:5 @content
node_modules\@angular\material\core\theming\_theming.scss 402:3 private-check-duplicate-theme-styles()
node_modules\@angular\material\core\theming\_all-theme.scss 44:3 all-component-themes()
node_modules\@angular\material\core\color\_all-color.scss 15:3 all-component-colors()
angular-material-css-vars\_main.scss 72:9 init-mat-theme()
angular-material-css-vars\_main.scss 97:3 init-material-css-vars()
src\styles.scss 8:1 root stylesheet
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
The problem still persists in v4.2.1, even though I've followed the instructions from the npm's site step by step and configured everything as it is in the tutorial.
The funny part is that it actually shows the warning 6 times on initial serve
and after rebuilding (project change), it does not show the warning anymore.
Any insights on this?
Having the same problem.
Same here
Seems there is an issue about this on the material repo https://github.com/angular/components/issues/25981
The problem persists in "angular-material-css-vars": "^4.2.2"
.
I just released version 5.0.0-next.0, which resolves the warning for me. Could you check if the warning is also gone for you?
Please note that this version contains some breaking changes, and the stable version will contain the update to Angular v16, which is expected next week.
I can safely confirm that with the following dependencies:
"@angular/animations": "^15.1.1",
"@angular/cdk": "^15.1.1",
"@angular/common": "^15.1.1",
"@angular/compiler": "^15.1.1",
"@angular/core": "^15.1.1",
"@angular/forms": "^15.1.1",
"@angular/material": "^15.1.1",
"@angular/material-luxon-adapter": "^15.1.1",
"@angular/platform-browser": "^15.1.1",
"@angular/platform-browser-dynamic": "^15.1.1",
"@angular/router": "^15.1.1",
"angular-material-css-vars": "^4.2.2",
Angular 15.1.1 and AngularMaterialCSSVars 4.2.2 the warnings are no longer present 🎉 🙌 . I am closing this issue and happy coding to everyone else!
I recently migrated my project from Angular 14.1.1 to Angular 15.1.0 and angular-material-css-vars from 3.0.0 to 4.0.2, yet when I serve it I get this nasty warning in the terminal:
my styles.scss:
my package json's dependencies:
the error also appears in the console:
I can see that @vpetrusevici has described this error in this issue and he said that it was fixed - am I missing something?
Let me know if further info is required.
I also tried to include
init-material-css-vars
with both components set to true, but I have the same result.