小编dee*_*keh的帖子

Bootstrap SCSS 中的弃用警告

我正在尝试通过仅将所需的组件style.scss从 bootstrap sass导入文件来创建自定义引导程序。但是,当我导入和编译 3 个必需的组件时,我会收到一连串的弃用警告。

社会保障:

@import "./bootstrap-4.3.1/scss/functions";
@import "./bootstrap-4.3.1/scss/variables";
@import "./bootstrap-4.3.1/scss/mixins";
Run Code Online (Sandbox Code Playgroud)

控制台警告(众多警告中的第一个):

Deprecation Warning: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacer, 2)

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

    ?
298 ? $headings-margin-bottom:      $spacer / 2 !default;
    ?                               ^^^^^^^^^^^
    ?
    bootstrap-4.3.1\scss\_variables.scss 298:31  @import
    style.scss 3:9                               root stylesheet
Run Code Online (Sandbox Code Playgroud)

我正在使用以下版本的工具:

引导程序:4.3.1,Sass:1.33.0 compiled with dart2js 2.13.0

使用此版本组合有什么问题,或任何其他问题?我该如何解决?

css sass bootstrap-sass bootstrap-4

6
推荐指数
1
解决办法
1909
查看次数

标签 统计

bootstrap-4 ×1

bootstrap-sass ×1

css ×1

sass ×1