Error: SyntaxError: You are using JavaScript, which has been disabled. in lesshat.less | Community
Skip to main content
bhansa
Level 2
September 27, 2021
Solved

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

  • September 27, 2021
  • 1 reply
  • 747 views

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.

 

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 28, 2021

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