Undeclared variables when compiling LESS
-
I am consistently getting “undeclared variable” errors when compiling the LESS files. If it was a just a few I would comment them out and move on, but when I comment out one two more pop-up. I’ve tried 2 different compilers, so it’s not that. The files are UTF-8 with no BOM, so it’s not that, either. I’m at a loss.
I’m also at a loss as to why no one else is reporting this issue, either here or on GitHub.
Here’s one example:
variable @grid-float-breakpoint is undefined @media (min-width: @grid-float-breakpoint) {
Is it possible to just edit the .css files directly? I remember seeing a comment from you somewhere saying that was possible, with a caveat that “you’ll be missing out on all LESS has to offer.”
I mean sure, LESS is cool and all that, but I’ve spent 2 days already messing with different compilers and editors, thinking they were the problem. I just need to get this project up and running. I can do “cool” another time when I’m not under a deadline.
I don’t mean to sound ungrateful at all, it’s just frustrating when 2 different compilers error out on code I haven’t touched.
- The topic ‘Undeclared variables when compiling LESS’ is closed to new replies.