Chaitra Deshpande
Chaitra Deshpande

Reputation: 115

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

If I include the following commented code in styles.scss(i.e //@import '~@nebular/auth/styles/all'; and //@include nb-auth-global();) as per the installation process, I get the following error.How to resolve

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

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

ERROR in ./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):

$theme: map-merge(map-get($nb-themes-non-processed, $default), $theme); ^ Argument $map1 of map-merge($map1, $map2) must be a map in /Users/Documents/Nebular-Angular/Angular-Nebular/AngularNebular/node_modules/@nebular/theme/styles/_theming.scss (line 64, column 13)

Upvotes: 0

Views: 860

Answers (1)

yggg
yggg

Reputation: 116

@import '~@nebular/auth/styles/all' means import auth styles for all themes (default, cosmic, corporate). If you have only one or portion of themes enabled, then you need to import auth styles only for enabled themes. For example, when only default and corporate themes enabled, auth imports should look like this:

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

We'll update docs with this note as well, thanks!

Upvotes: 1

Related Questions