我得到了这个编译器错误。有人能告诉我我需要安装哪个nebular模块来修复这个问题吗?
Failed to compile.
./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!
./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
@include nb-install() { ^ No mixin named nb-install in /Users/denisputnam/git/nb-niche-app/src/styles.scss (line 7, column 10)发布于 2019-02-18 03:33:27
尝试在angular.json的样式数组中添加"node_modules/@nebular/theme/styles/prebuilt/corporate.scss"
发布于 2019-02-18 21:13:21
我建议遵循这个https://akveo.github.io/nebular/docs/guides/enable-theme-system#basic-setup上的官方文档。在最简单的配置中,您唯一需要做的就是向angular.json中添加一个css文件
"styles": [
"../node_modules/@nebular/theme/styles/prebuilt/corporate.css",
],在这种情况下,你需要更多的灵活性(例如,能够改变主题SCSS变量)-遵循https://akveo.github.io/nebular/docs/guides/enable-theme-system#normal-setup这里的Normal设置指南。
但很难说得更多,因为问题描述没有给出你想要实现的目标的很多细节。
https://stackoverflow.com/questions/54736755
复制相似问题