【问题标题】:No mixin named nb-install没有名为 nb-install 的 mixin
【发布时间】:2019-04-12 07:39:50
【问题描述】:

我正在使用 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
}
};

【问题讨论】:

    标签: css angular scss-mixins nebular


    【解决方案1】:

    过了很久。我发现要安装这个依赖项.....

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

    【讨论】:

      猜你喜欢
      • 2022-01-24
      • 1970-01-01
      • 2020-02-19
      • 2016-05-30
      • 2019-06-17
      • 2018-12-28
      • 2021-12-28
      • 2020-04-05
      • 1970-01-01
      相关资源
      最近更新 更多