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
Moving along. I have reduced this to a basic example.
Error:
Errors produced by compilation of main2.less
ERROR 8:9 Cyclic references among variables: @varc (8:9) -> @vara (3:16) -> @varc (4:8)
Could not compile the file main2.less
Less language treats variables in a bit unusual way - if you define the same variable nultiple times within the same scope, only the last definition is used. All previous definitions are ignored.
The variable varA on the line 4 effectively references itself. It is impossible to evaluate it and an error is thrown. The error message should say @varC (8:9) -> @varA (3:16) -> @varA, I will fix that.
Moving along. I have reduced this to a basic example.
Error:
Errors produced by compilation of main2.less
ERROR 8:9 Cyclic references among variables: @varc (8:9) -> @vara (3:16) -> @varc (4:8)
Could not compile the file main2.less
main2.less:
@vara: 0px;
@varb: 0px;
@varc: @varb + @vara;
@vara: @varb + @vara;
logo
{
width: @varc;
}
The text was updated successfully, but these errors were encountered: