Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

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