-
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
[Bug]: [email protected]
Mixed Declarations deprecation warning in @carbon/react
#16962
Comments
@ThusSpokeNomad Thanks! We just noticed too from an internal report of the same error. We'll work on fixing this, but in the meantime you can ignore the warning, silence the warning or downgrade sass if you'd prefer. |
[email protected]
breaks @carbon/react
[email protected]
Mixed Declarations deprecation warning in @carbon/react
This will probably need to turn into an umbrella issue - I believe we have 1000+ instances we need to fix. Breaking it out per-component will probably make the most sense to keep the PR size manageable/reviewable for each. This can be a slow-burn lower priority item over multiple sprints as it's just a warning that can be suppressed. |
do you know starting from which version of Saas this will become a real problem? |
@marcellobarile, as in the description, starting from
|
if I got it right with |
From https://sass-lang.com/documentation/breaking-changes/
So it could come in a minor bump (e.g. 1.78.x or later), or a major bump (2.x), depending on how they choose to apply the rules in this case. Disclaimer: I have no insight into the decision or plans, I'm just an interested party. |
I put together a list of files that need to be updated. I pulled down #17141, updated the css build task to use the verbose log level, piped all the ~1100 deprecation notices we have right now into a file, cut it down to just the file path listed in each, and then deduped that list. I've updated the issue body to contain the list and have the typical format of one of our umbrella issues. |
We won't upgrade further than v1.77.6 until carbon fixes their mixed declarations to match CSS rules. Refs: carbon-design-system/carbon#16962
We won't upgrade further than v1.77.6 until carbon fixes their mixed declarations to match CSS rules. Refs: carbon-design-system/carbon#16962
We won't upgrade further than v1.77.6 until carbon fixes their mixed declarations to match CSS rules. Refs: carbon-design-system/carbon#16962
Approach discussion notes
Go for 2, if needed use the approach of 1 on a case by case basis. We need to document this for community members to understand more clearly what we're aiming for. smaller components a |
Sass recently included a new deprecation warning for mixed declarations.
This causes very noisy console output when working on this repo, as well as consumer environments, including the stackblitz sandboxes.
Important
This is just a warning and will not fail a build unless specifically configured to fail on warning messages.
Click to expand original issue body text
Package
@carbon/react
Browser
Chrome
Package version
v1.61.0
React version
v18.2.0
Description
Sass 1.77.7 recently introduced a deprecation which causes @carbon/react to fail on Vite with React18.2.0
https://github.com/sass/dart-sass/blob/main/CHANGELOG.md#1777
Also: https://sass-lang.com/documentation/breaking-changes/mixed-decls/
Reproduction/example
https://stackblitz.com/edit/github-2vsntp?file=package.json
Steps to reproduce
simply install
[email protected]
to use with @carbon/reactSuggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
Below is the scope of work for this:
[email protected]
ruleset. #17141Utility files to update
scss/utilities/_button-reset.scss
#18122scss/utilities/_custom-property.scss
#18123scss/utilities/_component-reset.scss
#18124scss/utilities/_focus-outline.scss
#18125scss/utilities/_box-shadow.scss
#18126scss/utilities/_tooltip.scss
#18127Component files to update
The text was updated successfully, but these errors were encountered: