Nebular: Urgent Issue

Created on 27 Mar 2018  路  8Comments  路  Source: akveo/nebular

Argument $map1 of map-merge($map1, $map2) must be a map

theme

Most helpful comment

I changed the order of imports and the error is gone.

@import '~@nebular/auth/styles/all';
@import 'themes';

@import '~@nebular/theme/styles/globals';


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

I am not sure what's the reason behind it.
@aucros give this a try.

All 8 comments

Hey @lakstap, please post your package.json package-lock.json, npm and node version so that we can check.

i had this same problem with an anduglar 7.x project

i had this same problem with an anduglar 7.x project

Hi, did you find a solution? I am having the same problem.
Thanks

Can someone consolidate a reproducible example? Otherwise, it seems impossible to guess.

Node Version - v11.6.0
NPM Version - 6.5.0-next.0
Ubuntu 18.04.1 LTS
Angular CLI Version - 7.2.3

  1. ng new project (use routing, use scss)
  2. cd project
  3. ng serve (success)
  4. ng add @nebular/theme (corporate, yes, yes)
  5. ng serve (success)
  6. Following this guide to add auth
  7. Final step : Enable Styles - I've added the @import '~@nebular/auth/styles/all'; and @include nb-auth-global(); in styles.scss file

styles.scss before

@import 'themes';

@import '~@nebular/theme/styles/globals';


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

styles.scss after

@import 'themes';

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

@include nb-install() {
  @include nb-theme-global();
  @include nb-auth-global();
};
  1. ng serve (fail) - error mentioned by original poster

Am I missing anything?

Node Version - v11.6.0
NPM Version - 6.5.0-next.0
Ubuntu 18.04.1 LTS
Angular CLI Version - 7.2.3

  1. ng new project (use routing, use scss)
  2. cd project
  3. ng serve (success)
  4. ng add @nebular/theme (corporate, yes, yes)
  5. ng serve (success)
  6. Following this guide to add auth
  7. Final step : Enable Styles - I've added the @import '~@nebular/auth/styles/all'; and @include nb-auth-global(); in styles.scss file

styles.scss before

@import 'themes';

@import '~@nebular/theme/styles/globals';


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

styles.scss after

@import 'themes';

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

@include nb-install() {
  @include nb-theme-global();
  @include nb-auth-global();
};
  1. ng serve (fail) - error mentioned by original poster

Am I missing anything?

i have the same error at the same step!

Node Version - v10.15.0
NPM Version - 6.4.1
Angular CLI Version - 7.2.3

I changed the order of imports and the error is gone.

@import '~@nebular/auth/styles/all';
@import 'themes';

@import '~@nebular/theme/styles/globals';


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

I am not sure what's the reason behind it.
@aucros give this a try.

@nnixaa
Hi, do you have any theories regarding this?
Do the order of the imports matter?

Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aqsdc1 picture aqsdc1  路  3Comments

suku-h picture suku-h  路  3Comments

batousik picture batousik  路  4Comments

andredatsch picture andredatsch  路  3Comments

nnixaa picture nnixaa  路  4Comments