-
Notifications
You must be signed in to change notification settings - Fork 85
(Emitted value instead of an instance of Error) postcss-custom-properties #376
Comments
First lets check to ensure |
"version": "0.0.7" in @angular-mdc/theme/package.json |
Couple follow-up questions.
|
I'm using angular cli version 1.5.
Here the result of npm outdated :
|
@ESKI everything lgtm. I've not been able to duplicate this using the published packages. I've seen a few times where If it works great, if not we know it's not package related. 😕 |
I tried to reinstall angular-mdc but the issue still the same. |
Ah. Duplicated it. Let ya know in a bit. |
After a bit of research, I'm confident it's not an issue with Angular MDC. Some recent changes in MDC upstream Sass are producing the postcss material-components/material-components-web#360 I've not found a solution yet to disabling the warnings using CLI and the following reddit post is recent.. If you find a solution, please let me know and I'll update the guides. I'll keep researching as well.. |
@ESKI Did some further research. Angular CLI uses a package called postcss-custom-properties. The warnings are generated because it doesn't support variable declarations on CSS selectors other than :root, so those variables are not transpiled for legacy browsers. Unfortunately, unless you opt to eject out of the CLI I've not found a workaround to remove the warnings. The Angular CLI repo has open issues for these warnings. Hope this helps! Closing since it's not a problem in our repo. I'll track the Angular CLI issues and refresh our guides if needed. |
Updated with a hackable solution. Please see issue #394 |
Hi,
I made an update to angular 5.0.1 and angular/mdc version 0.6 and i notice a lot of warnings are being shown :

Do you have any idea where does it come from ?
The text was updated successfully, but these errors were encountered: