【发布时间】:2019-05-05 00:18:23
【问题描述】:
我已经安装了@ng-bootstrap,现在我想在我的 app.component.scss 中使用 mixins,但出现错误
Failed to compile.
./src/app/app.component.scss
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
@import "~bootstrap/scss/functions";
^
File to import not found or unreadable: ~bootstrap/scss/functions.
in C:\Users\xxxx\tutorial\xxxx\src\app\app.component.scss (line 1, column 1)
以下是我的 app.component.scss
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import '~bootstrap/scss/mixins/_breakpoints';
.header_static{
position: absolute;
z-index: 500;
padding-top: 15px;
padding-bottom: 15px;
@include media-breakpoint-down(xs) {
padding-top: 20px;
padding-bottom: 20px;
}
}
【问题讨论】:
标签: angular ng-bootstrap