简体   繁体   English

VS code live Sass 编译器不生成 css 文件

[英]VS code live Sass compiler not generating css file

Checked at least 10 different sources for a solution but cant find anything that helps.检查了至少 10 个不同的解决方案来源,但找不到任何帮助。 As you can see in the pics, I have a path specified in settings.json but it's not generating a css file in the specified css folder when I click "Watch Sass".正如您在图片中看到的,我在 settings.json 中指定了一个路径,但是当我单击“Watch Sass”时,它没有在指定的 css 文件夹中生成 css 文件。

picture 1 of vs code vs代码的图1

picture 2 of vs code vs代码的图2

As the error message says:正如错误消息所说:

in file: practise.scss
variable '$light-color' isn't defined

Just define $light-color (actual line 14) before you call it (actual line 9).只需在调用它之前定义$light-color (实际第 14 行)(实际第 9 行)。

暂无
暂无

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

相关问题 VIsual Studio 代码 - 实时 Sass 编译器未生成。css 文件位于单独的 css 文件夹中 - VIsual Studio Code - Live Sass Compiler Not Generating .css File in Separate css Folder 实时 sass 编译器未生成 css 文件 - live sass compiler not generating css files vs code live sass 编译器不更新文件 - vs code live sass compiler not updating files 为什么我的 VS 代码直播 sass 编译器编译单独的 css 文件? - why my VS code live sass compiler compiling separate css files? 无法使用 Live Sass 编译器将 Sass 文件编译成 CSS - Can't compile Sass file into CSS with Live Sass Compiler 为什么我的 VS Code live sass 编译器设置没有编译我的 scss 文件? - Why is my VS Code live sass compiler settings not compiling my scss file? 在实时 sass 编译器中编译时出现 Sass 无效 css 错误 - Sass invalid css error on compile in live sass compiler vs代码中的实时sass编译器不会重新编译部分,只有main.scss - live sass compiler in vs code doesn't recompile partials, only the main.scss 是使用 Live Sass 编译器(VS 代码扩展)还是通过 npm 安装和运行 Sass 更好? (+ 提示如何从 node-sass 更改为 dart-sass) - Is it better to use the Live Sass Compiler (VS Code extension) or to install and run Sass via npm? (+ tips how to change from node-sass to dart-sass) 在 SCSS 中使用 CSS 变量会引发语法错误(SASS Live Compiler) - Using CSS vars in SCSS throws syntax error (SASS Live Compiler)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM