Closed Enngage closed 1 year ago
Oh, just noticed this was also reported in https://github.com/angular/components/issues/25981
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
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