Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

enter image description here

like image 564
nest Avatar asked Nov 25 '14 13:11

nest


1 Answers

The method that worked for me is to close the file and reopen it from the solution explorer. Just by renaming the file and trying for it to compile does not work for some reason.

like image 69
Girish Rao Avatar answered Oct 07 '22 17:10

Girish Rao