normalize-scss icon indicating copy to clipboard operation
normalize-scss copied to clipboard

The latest version of SASS has deprecated @include

Open chrishough opened this issue 1 year ago • 1 comments
trafficstars

The latest version of SASS has deprecated @include...

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

  ╷
1 │ @import 'normalize/variables';
  │         ^^^^^^^^^^^^^^^^^^^^^
  ╵
    node_modules/normalize-scss/sass/_normalize.scss 1:9  @use
    source/assets/stylesheets/vendor/_libraries.scss 1:1  @use
    stdin 3:1                                             root stylesheet

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

  ╷
2 │ @import 'normalize/vertical-rhythm';
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
    node_modules/normalize-scss/sass/_normalize.scss 2:9  @use
    source/assets/stylesheets/vendor/_libraries.scss 1:1  @use
    stdin 3:1                                             root stylesheet

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

  ╷
3 │ @import 'normalize/normalize-mixin';
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
    node_modules/normalize-scss/sass/_normalize.scss 3:9  @use
    source/assets/stylesheets/vendor/_libraries.scss 1:1  @use
    stdin 3:1

If we change the include to this, it fixes the issue..

@use 'normalize/variables';
@use 'normalize/vertical-rhythm';
@use 'normalize/normalize-mixin';

chrishough avatar Oct 27 '24 19:10 chrishough

@JohnAlbin here is the PR to patch this https://github.com/necolas/normalize.css/pull/916

chrishough avatar Oct 27 '24 20:10 chrishough