簡體   English   中英

面臨的問題-在Nebular中安裝身份驗證模塊期間,無法繼續嗎?

[英]Facing issue - During installation of auth module in Nebular, Not able to go forward?

如果我按照安裝過程在styles.scss中包含以下注釋的代碼(即// @ import'〜@ nebular / auth / styles / all';和// @ include nb-auth-global();),則我出現以下錯誤。如何解決

@import 'themes';    
@import '~@nebular/theme/styles/globals';   
  **//@import '~@nebular/auth/styles/all';**

@include nb-install() {  
  @include nb-theme-global();  
  **//@include nb-auth-global();**  
};  

./src/styles.scss(./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src中的錯誤嵌入式!./ node_modules / sass-loader / lib / loader.js ?? ref--14-3!./ src / styles.scss)模塊構建失敗(來自./node_modules/sass-loader/lib/loader .js文件):

$ theme:map-merge(map-get($ nb-themes-non-processed,$ default),$ theme); ^ map-merge($map1, $map2)參數$map1必須是/Users/Documents/Nebular-Angular/Angular-Nebular/AngularNebular/node_modules/@nebular/theme/styles/_theming.scss中的地圖(第64行) ,第13欄)

@import '~@nebular/auth/styles/all'表示所有主題(默認,宇宙,公司)的導入auth樣式。 如果僅啟用了一個或部分主題,則僅需要為已啟用的主題導入身份驗證樣式。 例如,僅啟用默認主題和公司主題時,auth導入應如下所示:

@import '~@nebular/auth/styles/themes/default';
@import '~@nebular/auth/styles/themes/corporate';
@import '~@nebular/auth/styles/globals';

我們還將用此注釋更新文檔,謝謝!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM