Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Error: SyntaxError: You are using JavaScript, which has been disabled. in lesshat.less

Avatar

Level 2

I am getting this error while the less files are getting compiled, lesshat is a less mixin library (using version 1.1.1) and the AEM less compiler is throwing this error.

 

lesshat contains statements like this, which make use of javascript in less files.

 

@processing: `(function(){ var arg = "@{arguments}".replace("[","").replace("]","") || "none"; if( !/^\w*([ X])/.test(arg) ) { arg = arg.replace(/,/g,"") } return arg; })()`;

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Could you please check if this help

https://newbedev.com/enable-inline-javascript-in-less

https://stackoverflow.com/questions/46729091/enable-inline-javascript-in-less

 

Note : I did not checked the less settings in AEM, if it exists or not or how the compiler works and conver less to css



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Could you please check if this help

https://newbedev.com/enable-inline-javascript-in-less

https://stackoverflow.com/questions/46729091/enable-inline-javascript-in-less

 

Note : I did not checked the less settings in AEM, if it exists or not or how the compiler works and conver less to css



Arun Patidar