Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2012 Web Essentials Less Compile Error

Visual Studio 2012 Update 2

Web Essentials 2.7

Hello, Every time when I try to change or create any .less file, I got this message in css preview:

/*

Compile Error. 
See error list for details


*/

And when I open Error List, I can see this:

LESS: 

This thing same everytime, no description at all. It doesn't depend from code, even this code generate error:

body {
}

What shall I do?

like image 224
0neel Avatar asked Jun 15 '13 19:06

0neel


3 Answers

I've been having this issue with Web essentials 2.7 and I still have it with v 3.2. Error message now reads as "LESS: Unrecognised input".

The only way I could get rid off this issue is to save main less file and all imported less files with encoding "UTF-8 without encoding" (File save, open Save As to find this option).

That's strange because Web essentials long time ago told BOM file markers bug was fixed. Also some other guys with same version of Web essentials do not have this issue using the same files.

So try for yourself, maybe it can help.

like image 150
Remigijus Pankevičius Avatar answered Oct 15 '22 09:10

Remigijus Pankevičius


Look at this:Web Essentials LESS Compiler gives no Error Messages

try to uninstalled Web Essentials, then re-installed them.

like image 1
Zack Yang Avatar answered Oct 15 '22 09:10

Zack Yang


Try to add this to the start of your less file:

*{}
like image 1
Alex Z Avatar answered Oct 15 '22 07:10

Alex Z