You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's odd - I'm currently using 1.3.3, and I've tried both lessc and less.js
EDIT: Note that I'm using the non-minified version of less.js which is displaying the error.
I just tested with the minified version and got different results - no error message is appearing, but the styles aren't being output into the head, and the style for the error message (ie. "less-error-message") is being output into the body instead of the head.
Indeed it is broken in 1.3.3 and fixed on our 1.4.0 branch, though I have little idea what fixed it and I didn't want to do a 1.3.4 release unless it was critical.. sorry.
First of all, apologies for the confusing title, but you'll see what I mean below.
Say we want to use a mixin within a namespace:
test1.less:
We compile test1.less and everything here is fine.
OK, so now we want to move our mixin to a separate less file:
test2.less:
bar.less:
We compile test2.less and, again, everything is fine.
Now let's say we want another import in our original file, and that import contains a mixin.
test3.less:
bar.less:
anothermixin.less:
We compile test3.less and yet again, everything is A-OK.
But say we want to add a class into anothermixin.less. And let's say we want that class to call our existing mixin called anothermixin().
test4.less:
bar.less:
anothermixin.less:
If we try to compile test4.less we now get a "NameError: #foo > .bar is undefined" error.
So it seems this error is caused by a combination of the following:
It looks like if any of these are NOT true then the error doesn't occur.
The text was updated successfully, but these errors were encountered: