-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack 5 with sass (dart scss) gives warningns #8069
Comments
thanks for reporting this, it seems the syntax is invalid with Dart Sass 2.x now. can you provide some more details on where you are seeing these warnings for easier testing and debugging or create a reduced test case in Code Sandbox? |
It's worth noting that Dart Sass 2.x isn't available, and it doesn't look like there's even a roadmap for it. In a recent comment from a maintainer they sound to be actively avoiding bumping to a new major. Latest is v1.32.8 right now. We can/should update the syntax here but for now this is just a warning. If the |
As we start suggesting that people migrate over to Dart Sass, I think the resolution on our end will be to update the output of |
@joshblack are you referring to #8228? |
@emyarod definitely related, I think that one will get Storybook updated to use Dart Sass and we'll start seeing the warnings potentially from this issue as a result. |
what are the actionable items for this issue? I was under the impression that #7546 was part of the necessary updates to remove these warnings |
The updates to color in #7546 are unfortunately a breaking change 😞 (no more mixins). It will definitely be the preferred way going forward though and simplify this package a ton (just a flat file versus having to worry about mixins). For this issue, I believe the change would be to update the colors build step to address the error that has been flagged ( |
unless I am misunderstanding, I believe this causes issues with custom color tokens in the
would it be better if we assigned the same color values as the mixin rather than |
@emyarod oh totally, I think that would definitely work. It definitely seems redundant with the mixin which is why in the Sass module version ( |
there's a new one coming up in sass 1.33.0
|
Thanks for the heads up! Tracking over in: #8746 |
I moved to webpack 5, sass (dart sass v 1.32.8) and getting these errors:
The text was updated successfully, but these errors were encountered: