Error when compiling twitterbootstrap buttons.less on WinLess
less, twitter-bootstrap
Solution
Twitter bootstrap team states that they do not guarantee compilation of individual files like button.less. They encourage the compilation of the bootstrap.less which has all the needed dependencies. Otherwise you have to be sure that you have all the dependencies needed by button.less (usually mixins.less and variables.less).
Actually the problem seems to be related to some parsing problems in WinLess, so before it is fixed you can come around with a hack which will dupe the WinLess parser. In mixins.less, change :
// IE7 inline-block
// ----------------
.ie7-inline-block() {
*display: inline; /* IE7 inline-block hack */
*zoom: 1;
}
with :
// IE7 inline-block
// ----------------
.ie7-inline-block() {
*display: inline; /* IE7 inline-block hack */
*zoom: 1;
// comment to make it work with WinLESS
}
As you can see it consists to the adding a new line to `// comment to make it work with WinLESS` to dupe the WinLess parser and make it work!
Problem
I get an 'eval' is null or not object on WinLess on buttons.less. Anyone ? ps. I have used the latest version of everything and import variables / mixins the version I used are: WinLess 1.5.3 Less 1.3 Bootstrap 2.04 Edit: This is fixed in Bootstrap 2.1.1