-
Notifications
You must be signed in to change notification settings - Fork 357
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
@import migration doesn't work; @use isn't a replacement for include #2402
Comments
First of all: this report comes across as quite rude in how it just states that things "don't work" without providing any details or filing specific issues. I understand that you're frustrated, but that doesn't give you the right to take it out on me. Please reconsider how you interact with people online, especially people you're asking for free support on their product that you're also using for free. Let's take these issues one by one.
If you're experiencing specific bugs with the Sass migrator, please file them at https://github.com/sass/migrator/issues/new. Just saying "it doesn't work as intended" is not helpful; please provide a minimal reproduction as well as an explanation of why you believe that behavior to be incorrect.
Sass doesn't natively support anything to do with JSX. If you're seeing problems here, you'll need to report them to whoever maintains the Sass-in-JSX tool you're using. Note that the Sass migrator can only migrate actual Sass files, not Sass embedded in other formats.
This sounds like an issue you should bring up with PatternFly. We've done everything we could to make sure users knew that
Well,
The |
Apologies, that was not the intent at all. I'm sorry I wrote it in such a way that it came across like that to you. Sincere apologies. Thanks for your reply, and thanks for developing SASS. |
Hi, we've been hit by tons of warnings about
@import
recently in Cockpit, and tried the suggested migration tool. It doesn't work as intended, and even changing to@use ... as *;
doesn't provide a transparent migration path.We have a bug about this @
And a first pass attempt at migration, using only the migration tool at:
We're also importing SCSS files from within JSX files, and SASS complains about that as well.
Additionally, we're using PatternFly 5, which is the current version of the PatternFly component library, and they're only changing some of these things in PatternFly 6, which is a major change that changes the way things work and look, which means nobody can easily upgrade to it. Even if we were able to upgrade Cockpit to fix the "issues" that are a result of the SASS
@import
deprecation, we won't be able to fix PatternFly 5, and they won't either (as they're concentrating on the new upcoming version instead).Could SASS have something like
@sassimport
that works the way that @import works for SASS specific code?Also: When is version 3.x? Weeks away? Months away? Years away? I see there's a 2.0.0 milestone, but it's 10% done, and I don't see any other plans anywhere.
Thanks!
Quick summary
@use
doesn't work as a replacement for@import
, even with@use ... as *;
The text was updated successfully, but these errors were encountered: