Bootstrap: i have this error Argument `$map2` of `map-merge($map1, $map2)` must be a map

Created on 20 Jul 2018  路  2Comments  路  Source: twbs/bootstrap

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

Most helpful comment

Really frustrating that Slack is becoming an official support channel for so many projects when it isn't indexed by google. For anyone stumbling across this, here was my fix:

Fix

@import "../../node_modules/bootstrap/scss/functions";
$sizes: (); // <-- Fix here
@import "../../node_modules/bootstrap/scss/variables";
@import "../../node_modules/bootstrap/scss/mixins";

Explanation

The variables file was throwing an error at line 145, which was the declaration of the $sizes map. Creating $sizes: (); before importing the file solves this, although you may need to figure out whether it is the same variable causing the problem in your situation

All 2 comments

Issues are for bug reports and feature requests, not general how-to questions. For that, we suggest the official Slack channel or Stack Overflow. Both are linked from our readme.

Thanks!

Really frustrating that Slack is becoming an official support channel for so many projects when it isn't indexed by google. For anyone stumbling across this, here was my fix:

Fix

@import "../../node_modules/bootstrap/scss/functions";
$sizes: (); // <-- Fix here
@import "../../node_modules/bootstrap/scss/variables";
@import "../../node_modules/bootstrap/scss/mixins";

Explanation

The variables file was throwing an error at line 145, which was the declaration of the $sizes map. Creating $sizes: (); before importing the file solves this, although you may need to figure out whether it is the same variable causing the problem in your situation

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yahesh picture yahesh  路  49Comments

andrade1379 picture andrade1379  路  41Comments

XhmikosR picture XhmikosR  路  43Comments

markoheijnen picture markoheijnen  路  56Comments

METACEO picture METACEO  路  46Comments