mdb-ui-kit icon indicating copy to clipboard operation
mdb-ui-kit copied to clipboard

Unable to build with grunt, fails on compiling less

Open GeorgeL9 opened this issue 10 years ago • 3 comments

Fresh installation using bower, fails on compiling less.

Running "less:material" (less) task

FileError: '../bower_components/bootstrap/less/variables.less' wasn't found. Tried - bower_components/bootstrap/less/variables.less,bower_components/bootstrap/less/variables.less,../bower_components/bootstrap/less/variables.less in less/_import-bs-less.less on line 1, column 1: 1 @import "../bower_components/bootstrap/less/variables.less"; 2 //@import "../bower_components/bootstrap/less/mixins.less"; Warning: Error compiling less/bootstrap-material-design.less Use --force to continue.

GeorgeL9 avatar Jan 11 '16 13:01 GeorgeL9

I'm experiencing the same issue, any ideas how to fix it? I have my bower_components folder inside the public folder of my laravel project (root_proyect/public/bower_components) is it the cause to the problem?

alpacin0 avatar Feb 03 '16 18:02 alpacin0

Yes, your bower components are in a different location, so you will need to adjust the include paths for less or sass depending on which you use.

rosskevin avatar Feb 03 '16 19:02 rosskevin

Thanks kevin! I changed the paths in the "import-bs-less.less" file like: @import "/public/bower_components/bootstrap/less/variables.less"; //@import "/public/bower_components/bootstrap/less/mixins.less";

And could run 'grunt less', and any command like a charm. Cheers bro.

alpacin0 avatar Feb 03 '16 21:02 alpacin0