Sass failing to compile - Web Essentials 2013 Update 4

前端 未结 9 878
-上瘾入骨i
-上瘾入骨i 2020-12-18 23:07

I\'m currently using Web Essentials 2013 update 4 to provide support for compiling .scss files in Visual Studio.

The tool has worked fine for me in the past however

9条回答
  •  伪装坚强ぢ
    2020-12-18 23:42

    I had a similar problem, after installing Web Essentials 2013 Update 4 the .scss files started throwing errors like this to the output:

    Something went wrong reaching: ... 
    SCSS: Site.scss compilation failed: The service failed to respond to this request
    Possible cause: Syntax Error!
    

    The only solution for me was this:

    1. Uninstall Web Essentials
    2. Delete %AppData%\Local\Microsoft\VisualStudio\12.0
    3. Delete %AppData%\Roaming\Microsoft\VisualStudio\12.0
    4. Repair VS 2013.4
    5. Reinstall Web Essentials

    Source: https://visualstudiogallery.msdn.microsoft.com/56633663-6799-41d7-9df7-0f2a504ca361/view/Discussions/1#15143

    And a heads-up: If you import other .scss files, make sure they are in the correct location. When I updated Twitter.Bootstrap.Sass 3.3.3 via NuGet, the related .scss files were moved to a different folder and I had to update references. For example:

    Before:

    @import "../sass/bootstrap/_utilities.scss";
    

    After:

    @import "../stylesheets/bootstrap/_utilities.scss";
    

提交回复
热议问题