Skip to content

As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables. Recommendation: add $E: null $B: null at the stylesheet root. #2430

Open
@harshi9959

Description

@harshi9959

Previously I was encountering Legacy JS API deprecation warnings but after resolving those am getting the warnings like below

Deprecation Warning: As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.

Recommendation: add `$B: null` at the stylesheet root.

   ╷
59 │   $B: $namespace + $common-separator + $block !global;
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules/element-plus/theme-chalk/src/mixins/mixins.scss 59:3  b()
    node_modules/element-plus/theme-chalk/src/icon.scss 24:1           @use
    node_modules/element-plus/theme-chalk/src/base.scss 3:1            @use
    node_modules/element-plus/theme-chalk/src/index.scss 1:1           @use
    assets/scss/element/index.scss 3:1                                 root stylesheet

Deprecation Warning: As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.

Recommendation: add `$E: null` at the stylesheet root.

   ╷
67 │   $E: $element !global;
   │   ^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules/element-plus/theme-chalk/src/mixins/mixins.scss 67:3  e()
    node_modules/element-plus/theme-chalk/src/alert.scss 63:3          @content
    node_modules/element-plus/theme-chalk/src/mixins/mixins.scss 62:5  b()
    node_modules/element-plus/theme-chalk/src/alert.scss 5:1           @use
    node_modules/element-plus/theme-chalk/src/index.scss 4:1           @use
    assets/scss/element/index.scss 3:1                                 root stylesheet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions