-
Notifications
You must be signed in to change notification settings - Fork 86
SassError: Can't find stylesheet to import #2120
Comments
Actually, based on this blog post, |
@mattdsteele I encountered same issue a couple weeks ago and commented under MDC repo for further investigation upstream. material-components/material-components-web#5546 (comment) @abhiomkar filed an issue with A couple workarounds are mentioned in the above links but if all else try temporarily resolving directly (e.g.: Hope this helps.. |
Hi, what's the temporary fix? I'm not too familiar with webpack so I'm not sure how to set I also tried using the code from |
I think you can either use the absolute path, and restart ng serve. |
@dazza91 thanks, I already have those lines in my my This is what I have in my stylesheet:
The code now compiles successfully but the checkbox does not seem to be styled properly like in the example. |
I installed
and I changed my
I also created a
but I don't think I have it set up properly. If anybody has any tips, please let me know. |
Sorry I don't know what to suggest. Usually when you create a new angular project you specify the |
Maybe it might be something to look into for testing at least. I'm sure there's a list of all the modules we could copy and paste?? ... |
Describe the bug
I'm not sure this is specifically an MDC Web bug, but I'm open to suggestions or workarounds.
Loading the styles for Chips does not appear to be usable, due to
@material/chips
using a@forward
directive, which is not supported by the current Sass pulled in by the Angular toolkit.To Reproduce
Steps to reproduce the behavior:
ng serve
It will produce this error:
What Angular MDC version are you using?
What OS are you using?: Windows 10
What browser(s) is this bug affecting?: n/a
Additional context
I think what's happening is that while
@material/chips/_index.scss
exists, it's using a@forward
directive to include its mixins and variables: https://github.com/material-components/material-components-web/blob/master/packages/mdc-chips/_index.scssThis was a new at-rule to me, but based on this documentation, I believe it's only available in a future version of dart-sass (1.24.0, while the Angular CLI loads 1.23.3).
I'm not sure how to resolve this. Are there any workarounds or other approaches you might recommend?
The text was updated successfully, but these errors were encountered: