material-design-for-bootstrap: 4.5.1 is broken (color maps)

Expected behavior

Completed compiling (like on 4.5.0)

Actual behavior

Argument `$map2` of `map-merge($map1, $map2)` must be a map
in [...]\node_modules\mdbootstrap\scss\core\_colors.scss (line 43, column 7)

Because $red has been already set in bootstrap itself!

Your working environment and MDB version information

node v8.11.1, npm v5.6.0, yarn v1.5.1, bootstrap v4.1.0, mdbootstrap v4.5.1

Resources (screenshots, code snippets etc.)

scss file

@import "~bootstrap/scss/bootstrap";
@import "~mdbootstrap/scss/mdb";

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 31 (13 by maintainers)

Most upvoted comments

For this package - MDB 4.5.1 we commented some of Bootstrap variables in our core/bootstrap/variables.scss file, because they had conflict with our variables, that’s why any new file, not ours will have conflict. This problem will be fixed in the next release which will be in May 7th.

It should be fixed in the next MDB Angular release.

4.5.2 release has resolved the issue. Closing.

You’re welcome.

Error: argument $map2 of map-merge($map1, $map2) must be a map This is: $red: () !default;

$red: () !default; $red: map-merge(( “lighten-5”: $red-lighten-5, “lighten-4”: $red-lighten-4, “lighten-3”: $red-lighten-3, “lighten-2”: $red-lighten-2, “lighten-1”: $red-lighten-1, “base”: $red-base, “darken-1”: $red-darken-1, “darken-2”: $red-darken-2, “darken-3”: $red-darken-3, “darken-4”: $red-darken-4, “accent-1”: $red-accent-1, “accent-2”: $red-accent-2, “accent-3”: $red-accent-3, “accent-4”: $red-accent-4 ), $red);