WebEssentials less support not working

I am using VS 2013 Update 4 with web framework installed (latest version)

If I create a completely new project and add a single .less file that has nothing but a body declaration

body {
  font-size: 10px;
}

      

I get this error "Compilation error (see the list of errors to navigate to the error location):".

However, the error list is completely empty.

I did everything I read, like uninstall / reinstall.

Is it hard to believe that this is so hard and doesn't work out of the box?

Is there something else I can use that will convert to .css files in Visual Studio after saving?

Thanks, this is frustrating !!

+3


source to share


3 answers


I have been tracking down a way to fix this with the current WE version (the problem stems from NodeJS not being packaged correctly or not extracted correctly - not sure what). So to fix it just reinstall node and install module backups

  • Find the path where WE is installed.
  • There should be something like C: \ Users \ $ username \ APPDATA \ LOCAL \ MICROSOFT \ VISUALSTUDIO \ 12.0 \ Extensions \ $ random_folder

  • Run the commands required to reinstall node and install the backups of the modules

I made a powershell script to do this for you to open powershell and run

iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/iamkrillin/e5e95f0193eef4358e09/raw/301c170e9eed302f09f0f577dc0ab26be4cc09ea/we.ps1'))

      



You can view the script here. https://gist.github.com/iamkrillin/e5e95f0193eef4358e09#file-we-ps1

UPDATE

An update has been released to resolve this issue.

-1


source


I had the same problem with update 2.5.2.

As a result, I uninstalled version 2.5.2. and installed stable version 2.5 https://github.com/madskristensen/WebEssentials2013/releases/tag/v2.5 (.vsix)

After that, everything worked again.



So:

  • Delete 2.5.2
  • Restarting VS 2013
  • Install 2.5 (.visx)
  • TA-dah
+1


source


For me the problem was the hash (#) in the folder structure where my project was.

So C:\Develop\C#\MyProject\...

failed to execute C:\Develop\CSharp\MyProject\...

.

+1


source







All Articles