css - 没有名为 nb-install 的 mixin

标签 css angular scss-mixins nebular

我正在使用 angular5,在执行 npm start 或 serve 时出现“No mixin named nb-install”错误

Module build failed:
undefined
        ^
      No mixin named nb-install

Backtrace:
        stdin:13
      in E:\mrb_bugfixes\bottledepot\src\app\@theme\styles\styles.scss (line 13, column 10)

以下是我正在执行的名为“styles.scss”的文件

@import 'themes';

// framework component themes (styles tied to theme variables)
@import '~@nebular/theme/styles/globals';
@import '~@nebular/auth/styles/all';

// loading progress bar theme
@import './pace.theme.scss';

// install the framework and custom global styles

@include nb-install() {

// framework global styles
@include nb-theme-global();
@include nb-auth-global();

// loading progress bar
@include ngx-pace-theme();

.custom-control .custom-control-indicator {
border-radius: 50%; // TODO: quickfix for 
https://github.com/akveo/nebular/issues/275
}
};

最佳答案

花了很长时间。我发现要安装这个依赖项.....

npm install --save @nebular/theme @angular/cdk @angular/animations

关于css - 没有名为 nb-install 的 mixin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55646735/

相关文章:

css - 如何根据根选择器有条件地设置 scss 变量值

android - AVD : Is there an inspector?

css - 图像左侧的 Div

css-float - 使用 CSS 显示 :inline-block or float:left with mixed amounts of text

angular - Ionic 3 - 过滤复杂数组

angular - 如何在 Angular 7 中使用 SCSS 混入

jquery - 如何根据设备屏幕更改引导轮播中的文本大小

javascript - 事件精确路由器链接演示?

angular - 如何在 Angular RC.1 之上加载 Angular 2 polyfil?

css - 关键帧混合