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

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

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Sep 28, 2021 4:02 PM UTC

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

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Sep 28, 2021 4:02 PM UTC

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

Translate
Arun Patidar