madskristensen / WebEssentials2013

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

LESS, data-uri with images, version 2.6.36 #1949

Open accetone opened 9 years ago

accetone commented 9 years ago

Less data-uri function not more compile with one parameter (in previous version of WE all work good)

clip2net_150902201734 clip2net_150902201821

rjgotten commented 9 years ago

@accetone The node_modules folder distributed with Web Essentials is broken and missing everything that is not a .js file. That includes the .json datasources in the packages that handle file-extension to content type mapping.

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

@madskristensen This wasn't fixed yet? I reported this broken as far back as 2.6.12 ...

BonzoFestoon commented 8 years ago

There is a work-around on stackoverflow that describes how to get it to work again in case someone runs into this problem until it is fixed.
http://stackoverflow.com/questions/32909014/less-error-evaluating-function-data-uri-cannot-find-module-types-json

rjgotten commented 7 years ago

There is a work-around on stackoverflow that describes how to get it to work again in case someone runs into this problem until it is fixed.

That workaround is incomplete. #1917 contains the full workaround, which basically amounts to building downloading and building the node_modules folder that WebEssentials needs, yourself.

I've provided a canned batch file to do the job though. However, now that NPM v3 handles flattening folder structure itself, it's a bit outdated.