No mixin named media-breakpoint-down using webpack

Viewed 4735

No mixin named media-breakpoint-down. I am trying to compile my sass files using webpack and I am receiving this error. Any idea what causes this error ?

https://imgur.com/a/YrLrkev

my scss snippet

.mh-header-info {
  @include media-breakpoint-down(md) {
      display: none;
    }
    height: 35px;
    background: $primary;
    .mh-header-details {
      font-size: 13px;
      color: $white;
      padding: 5px;
1 Answers

You need import bootstrap function and mixins for bootstrap 5

@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";

or breakpoints too in bootstrap 4

@import "~bootstrap/scss/breakpoints";
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
Related