Compile LESS with Web Essentials in Visual Studio Error - Cannot call method 'toJSON' of undefined

json, less, visual-studio-2013, web-essentials

Solution

I found the same bug, running Web Essentials 2.5.2 in VS 2013 Update 4.

Solved by upgrading to WE 2.5.3 for Update 4.

Problem

I just installed Web Essentials in Visual Studio Premium 2013 in order to use LESS css. I renamed my Site.css into Site.less, save and I get `Compilation Error occurred (see error list to navigate to the error location):` On the error list: `Error 1 RTLCSS: Exception occured: Cannot call method 'toJSON' of undefined Site.less` I am totally new to less and have no idea what the error could be referring to. I have followed some getting started with less in visual studio tutorials and I believe I am not missing any step. Thanks for your help!

Original source