madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 252 forks source link

Cannot compile LESS file after upgrade #1939

Open tdhung80 opened 9 years ago

tdhung80 commented 9 years ago

Hi,

I run into this error right after I update WE to Update 5. " Less: error evaluating function data-uri: Cannot find module './types.json' " How could I reverse WE to Update 4?

Any help will be greatly appreciated!

My Best, Hung Tran

candrews74 commented 9 years ago

I noticed this issue as well. There is a file type.json that is missing from the node mime package.

I downloaded the file from https://github.com/broofa/node-mime and copied it to the node modules folder. I then restarted VS and it started working again.

C:\Users\Username\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\0hrky2tf.4y5\Resources\nodejs\tools\node_modules\mime

The 0hrky2tf.4y5 is a generated during installation of the extension and will be different.

rjgotten commented 9 years ago

@candrews74 @tdhung80

You need quite a bit more than just the type.json file. The entire node_modules folder is broken in WE-2013 2.6.12, removing non-JS files from many locations.

See issue https://github.com/madskristensen/WebEssentials2013/issues/1917

brgrz commented 9 years ago

Too many issues in this latest version. I uninstalled it and installed 2.5.4. You can get it here https://github.com/madskristensen/WebEssentials2013/releases