简体   繁体   English

没有来自 SCSS 的 output 被编译成 CSS 时 Sass 编译器或 Z1F8DC2766F80408FECDZD

[英]No output from SCSS gets compiled into CSS when Live Sass compiler or sass --watch is used

I have freshly installed VSCode and the Live Sass Compiler extension, but whenever I press Watch Sass , a compilation error gets thrown in the Output and no .css file or .css.map gets compiled. I have freshly installed VSCode and the Live Sass Compiler extension, but whenever I press Watch Sass , a compilation error gets thrown in the Output and no .css file or .css.map gets compiled.

Compilation Error
There was no CSS output from sass/sass
--------------------
Watching...
--------------------

This is what my project directory looks like:这是我的项目目录的样子:

这是我的项目目录的样子

Live Sass Compiler has not been maintained by the creator since 2018 and is thus outdated. Live Sass 编译器自 2018 年以来一直未由创建者维护,因此已过时。

Live Sass Compiler uses Node Sass and not Dart Sass.实时 Sass 编译器使用节点 Sass 而不是 Dart Z8B8D7133FC325F78588DZF。 Dart Sass is the maintained version of Sass and receives all the new features, while Node Sass is deprecated and does not. Dart Sass is the maintained version of Sass and receives all the new features, while Node Sass is deprecated and does not.

You can install Live Sass Compiler by Glenn Marks instead which is a maintained fork of Live Sass Compiler.您可以安装 Glenn Marks 的 Live Sass 编译器,它是 Live Sass 编译器的维护分支。

来自 Glenn Marks 的 Live Sass Compiler 图片

Another alternative is the DartJS Sass Compiler extension另一种选择是DartJS Sass Compiler扩展

DartJS Sass 编译器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM