Skip to content

mixins not available when "mixins: true" specified #9

@jeffreywescott

Description

@jeffreywescott

Hey -- awesome library. Thanks for it!

I'm trying to use mixins using your css-modules example, changing app/Layout/Layout.scss as follows:

.layout {
  display: block;
  position: relative;
  width: 100%;
  @include make-container();
}

In the .bootstraprc:

styles:
  mixins: true
  ...

However, when I try to run webpack (or the dev server), I get:

ERROR in ./~/css-loader?modules&importLoaders=2&localIdentName=[name]__[local]__[hash:base64:5]!./~/postcss-loader!./~/sass-loader!./app/layout/Layout.scss
Module build failed:
  @include make-container();
          ^
      No mixin named make-container

Backtrace:
    stdin:5
      in /Users/jeffrey/dev/learnersguild/bootstrap-loader/examples/css-modules/app/layout/Layout.scss (line 5, column 12)
 @ ./app/layout/Layout.scss 4:14-240 13:2-17:4 14:20-246

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions