Bootstrap: Getting "No mixin named -assert-ascending error" in bootstrap/scss/_variables.scss

Created on 15 Aug 2017  路  5Comments  路  Source: twbs/bootstrap

Getting this error when directly importing bootstrap/scss/_variables.scss -

@include _assert-ascending($grid-breakpoints, "$grid-breakpoints"); ^ No mixin named -assert-ascending

css v4

Most helpful comment

I added following

@import '~bootstrap/scss/functions', '~bootstrap/scss/variables';

in my main scss file to overcome this issue.

All 5 comments

Make sure you're including _functions.scss. That's where that is defined. https://github.com/twbs/bootstrap/blob/v4-dev/scss/_functions.scss

@mdo i checked my _functions.scss there is function name _assert-ascending but error is below

@include _assert-ascending($grid-breakpoints, "$grid-breakpoints");
No mixin named -assert-ascending

I've same error

I added following

@import '~bootstrap/scss/functions', '~bootstrap/scss/variables';

in my main scss file to overcome this issue.

...and add the include before your variables ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MrCsabaToth picture MrCsabaToth  路  3Comments

cvrebert picture cvrebert  路  3Comments

IamManchanda picture IamManchanda  路  3Comments

bellwood picture bellwood  路  3Comments

knownasilya picture knownasilya  路  3Comments