Uncommenting component grunt error

I’m using bedrock + roots 7 and am running grunt on the theme folder. I am getting a grunt error when i comment out a bootstrap component in _bootstrap.less for example i commented out alert component.

Completed in 2.587s at Mon Aug 11 2014 20:01:41 GMT+0200 (CEST) - Waiting…

File “assets/css/main.css” changed.
File “assets/less/_bootstrap.less” changed.
Running “less:dev” (less) task

NameError: .alert-variant is undefined in assets/vendor/bootstrap/less/alerts.less on line 58, column 3:
57 .alert-success {
58 .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
59 }
Warning: Error compiling assets/less/main.less Use --force to continue.

Aborted due to warnings.

Did i miss anything on the setup etc.? Still a bit new to bedrock/grunt so i may be missing something.


There are mixin components and style components. I suspect you commented the mixin components so Grunt fails trying to compile the remaining uncommented style components because the style components use variables from the mixin components which you commented out.

Ok, i totally missed that one. Thanks.