Skip to content
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

Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. #85

Open
JoJk0 opened this issue Dec 3, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@JoJk0
Copy link

JoJk0 commented Dec 3, 2024

I'm using SCSS with component library to configure stylesheet generation with custom vars. I have started to see a lot of deprecation warnings as soon as I start my dev server.

Example:

Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

  ╷
6 │ @import "utils/animations";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
    node_modules\.pnpm\@[email protected]_@[email protected][email protected][email protected]__\node_modules\@oruga-ui\theme-oruga\dist\scss\oruga.scss 6:9        @import
    node_modules\.pnpm\@[email protected]_@[email protected][email protected][email protected]__\node_modules\@oruga-ui\theme-oruga\dist\scss\oruga-build.scss 9:9  @import
    src\styles\main.scss 21:9                                                                                                                                
                  root stylesheet
@mlmoravek
Copy link
Member

Yes, the theme needs to be refactored with the @use and @forward sass feature instead of the deprecated @import.
However, this is not on my list yet, as I'm currently focusing on other things within the Oruga project.
But this must/should be focused when Sass 3.0.0 comes out.

@mlmoravek mlmoravek added enhancement New feature or request help wanted Extra attention is needed labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants