You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that you are currently now using color.adjust which doesn't seem to work in combination with var. Sure enough, if we replace var(--theme-accent-500) with any specific color ('red', '#FF0000') the error goes away.
Is this intended? Can this be fixed in some way?
Reproduction
Use 'var' to define theme colors
Expected Behavior
Same as in version 14.x.y
Actual Behavior
Project cannot be compiled with error such as HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: $color: var(--theme-accent-500) is not a color.
Is this a regression?
The previous version in which this bug was not present was
14.x.y
Description
We have customizable theming and define theme such as:
And this worked perfectly fine in previous material versions, but in v15 we are getting exception such as:
The problem is that you are currently now using
color.adjust
which doesn't seem to work in combination withvar
. Sure enough, if we replacevar(--theme-accent-500)
with any specific color ('red', '#FF0000') the error goes away.Is this intended? Can this be fixed in some way?
Reproduction
Use 'var' to define theme colors
Expected Behavior
Same as in version 14.x.y
Actual Behavior
Project cannot be compiled with error such as
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: $color: var(--theme-accent-500) is not a color.
Environment
Angular CLI: 15.0.0
Node: 16.18.0
Package Manager: npm 8.19.2
OS: win32 x64
Angular: 15.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, google-maps, language-service, material
... material-luxon-adapter, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
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.9.3
The text was updated successfully, but these errors were encountered: