Crunching / Compiling LESS

695 views Asked by At

I have tried both SimpLESS and Crunchapp both return the same error.

I am trying to compile this bootswatch http://bootswatch.com/cyborg/ and when I do I get the following error.

Compiler Errors
variable @grayLight is undefined (Line: 17)

Does anyone know what I am doing wrong?

2

There are 2 answers

4
Malyo On

You have to asign the variable value first, for example:

@grayLight: #ffffff;

It's exactly as error said, you use variable that is undefined. Then you can call this variable at any place in code. If it happens you defined it earlier, check if names are equal (letterCase as well).

0
laszlo-horvath On

You must define the variable in the same file where you using it:

@grayLight: #e7e7e7;

Or if it defined in another .less file you must import that to see the variable in another file:

@import "mixins.less";