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

[WARNING] Deprecation [plugin angular-sass] #216

Open
ranouf opened this issue Mar 3, 2025 · 1 comment
Open

[WARNING] Deprecation [plugin angular-sass] #216

ranouf opened this issue Mar 3, 2025 · 1 comment

Comments

@ranouf
Copy link

ranouf commented Mar 3, 2025

Hi,

I found this article, explaining how to to avoid having warning with Angular-SASS:

I saw you modified already mostly all bootstrap library, thanks!

But I still have 2 warnings, do you plan to resolve them soon?

▲ [WARNING] `alert-variant()` has been deprecated as of v4.3.0. It will be removed entirely in v6.0.0. [plugin angular-sass]

    angular:styles/global:styles:2:8:
      2 │ @import 'src/styles.scss';
        ╵         ~~~~~~~~~~~~~~~~~

  node_modules\@coreui\coreui\scss\mixins\_deprecate.scss 10:5  deprecate()
  node_modules\@coreui\coreui\scss\mixins\_alert.scss 4:1       @forward
  node_modules\@coreui\coreui\scss\_mixins.scss 28:1            @forward
  node_modules\@coreui\coreui\scss\coreui.scss 8:1              @use
  src\assets\scss\portal.scss 5:1                               @use
  src\styles.scss 2:1                                           root stylesheet



▲ [WARNING] `avatar()` has been deprecated as of v5.1.0. It will be removed entirely in v6.0.0. [plugin angular-sass]

    angular:styles/global:styles:2:8:
      2 │ @import 'src/styles.scss';
        ╵         ~~~~~~~~~~~~~~~~~

  node_modules\@coreui\coreui\scss\mixins\_deprecate.scss 10:5  deprecate()
  node_modules\@coreui\coreui\scss\mixins\_avatar.scss 4:1      @forward
  node_modules\@coreui\coreui\scss\_mixins.scss 29:1            @forward
  node_modules\@coreui\coreui\scss\coreui.scss 8:1              @use
  src\assets\scss\portal.scss 5:1                               @use
  src\styles.scss 2:1                                           root stylesheet

Here are the versions I use:
"@coreui/angular": "~5.4.3",
"@coreui/coreui": "~5.3.1",
"@coreui/icons-angular": "~5.4.3",

Thanks

@xidedix xidedix changed the title WARNING] Deprecation [plugin angular-sass] [WARNING] Deprecation [plugin angular-sass] Mar 7, 2025
@xidedix
Copy link
Member

xidedix commented Mar 7, 2025

@ranouf

As a temporary workaround, you can disable deprecation messages by overriding the $enable-deprecation-messages variable.

@use "@coreui/coreui/scss/variables" as *;

$enable-deprecation-messages: false;

@use "@coreui/coreui/scss/coreui" as *;

Another option is to load a module with configuration.

@use "@coreui/coreui/scss/coreui" as * with (
  $enable-deprecation-messages: false
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants