This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I want to use javascript in Less, like this: @height: I get the following error. any suggestions? Syntax error: JavaScript evaluation error: 'ReferenceError: document is not defined' |
|
|
You can only use browser DOM references if you are running Less in the browser (see: http://lesscss.org/#-client-side-usage for details). If you are intending to do this then turn off compilation under Web Workbench project settings for this file as you will be including it as a .less in your page. You can do this via the Web Workbench settings through the Mindscape menu.
|
|
|
Thanks for your help.I have get it. |
|
|
use |
|