Mdb-ui-kit: Sass compiling issue....missing bootstrap/variables

Created on 26 Jan 2017  路  6Comments  路  Source: mdbootstrap/mdb-ui-kit

When compiling the scss I'm getting the following error:

Module build failed: ModuleBuildError: Module build failed:
@import "bootstrap/variables";

This statement resides in _import-bs-sass.scss.

I installed via npm. I'm going to upload my code base to github.

All 6 comments

@runningrandall, i had a similar error and I ended up fixing the issue by using the less files instead. They compile without errors. I'm using npm.

Sorry guys but without a MINIMAL reproducible example of the problem I can't really help you.

Just import the sass version with webpack. There is no way to resolve @import "bootstrap/variables";. Where is this file expected to come from?

When using SASS, @import directives cannot be interpolated. Given the variety of configurations, the typical bower_components directory is occasionally in a different location. Given the options, a loadPath was added to the SASS compiler so that bootstrap files could be loaded without specifying the path to the bower_components directory. You may similarly need to add a load path to your compiler. It is still debatable if this is for the greater good, but seems like the only way to accommodate multiple configurations.

https://github.com/FezVrasta/bootstrap-material-design#bower

Was this page helpful?
0 / 5 - 0 ratings

Related issues

migaber picture migaber  路  10Comments

snessnes picture snessnes  路  7Comments

HectorLS picture HectorLS  路  6Comments

Elisa1202 picture Elisa1202  路  5Comments

MasDevProject picture MasDevProject  路  4Comments