Skip to content

Fix deprecation warnings on @import rules #14

@RobinvanderVliet

Description

@RobinvanderVliet

I get the following error in my project that uses this package as a dependency:

DEPRECATION WARNING [import]: 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 "_variables";
│ ^^^^^^^^^^^^

../node_modules/flagpack-dart-sass/src/flagpack.scss 3:9 root stylesheet

DEPRECATION WARNING [import]: 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


4 │ @import "_mixins";
│ ^^^^^^^^^

../node_modules/flagpack-dart-sass/src/flagpack.scss 4:9 root stylesheet

I think this issue can be fixed by changing @import to @use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions