lesscss-engine
lesscss-engine copied to clipboard
LessException with example code
I am trying to work with this library in a Grails project but just running the example code
LessEngine engine = new LessEngine();
String text = engine.compile("div { width: 1 }");
throws the exception
com.asual.lesscss.LessException: Syntax Error: Cannot find function trim.
The version I am working on is 1.4.2.
It seems to be working with version 1.3.3.
Am running into the same issue and our code base is not compatible with the older version of less ! Any updates on understanding this issue would be of great help.
Been looking into this a bit. The problem in my case was, someother library had an internal dependency on a different version of rhino and, during compilation, the other rhino version was resolved to the classpath. Hope this helps.