Developer forum

Forum » Rapido » LessCompiler error

LessCompiler error

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have recently upgraded Rapido 2.1 to Rapido 3.0.

I have followed the steps for a manual upgrade and everything went fine until LESS compilation.

I keep getting this error:

2018-10-18 21:52:56.4880|ERROR|LessCompiler| 
variable @ecommerce-loyalty-points-color is undefined on line 1006: 
[1005]: .u-color--loyalty-points { 
[1006]: .color(@ecommerce-loyalty-points-color); 
-----------^ 
[1007]: } 

But the LoyaltyPoint field in the Ecommerce settings has a value already.

I don't know how to debug it further.

Any idea would be appreciated.

Thank you,

Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Anybody?

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply
This post has been marked as an answer

Hi Adrian

Sorry for the slow answer. I am not fully sure if I am correct, but I have a suggestion. There is an configuration file for the Less compiler in the root of the templates folder. One for each website. They are named like this "Less_1.config", there is a new property in the configuration on Rapido 3.0, and it should look like this:

<UseCleanVariableNaming>true</UseCleanVariableNaming>

If that does not solve the problem, then please attach the compiled Less variables from "css/rapido/_variables_1.auto.less" Then I may be able to see what went wrong.

 

Best regards
Karsten Thuen

Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Karsten,

Thank you for the reply.

In the meantime I have found the problem and it is exactly the one you indicated.

Thank you,

Adrian

 

You must be logged in to post in the forum