我需要一些有关在scss文件中设置指南针的帮助。
我已经创建了所有文件夹,并且从我的角度来看,一切都正确,但是当我尝试保存我的scss文件时,我在控制台中看到错误:
Compilation Error
Error: File "d:\Git kopia\Personal Budget planner with php\sass\compass\utilities\color\compass\utilities\color\brightness" not found
on line 1 of sass/d:\Git kopia\Personal Budget planner with php\sass\compass\utilities\color\_contrast.scss
from line 1 of sass/d:\Git kopia\Personal Budget planner with php\sass\compass\utilities\_color.scss
from line 1 of sass/d:\Git kopia\Personal Budget planner with php\sass\compass\_utilities.scss
from line 1 of sass/d:\Git kopia\Personal Budget planner with php\sass\_compass.scss
from line 1 of sass/d:\Git kopia\Personal Budget planner with php\sass\style1.scss
>> @import "compass/utilities/color/brightness";
例如:
我在路径中:... / color / brightness文件名为_brightness.scss?
您知道这是什么原因吗?
答案 0 :(得分:0)
看起来.../color/brightness
的路径解析为:
"php\sass\compass\utilities\color\compass\utilities\color\brightness"
注意重复的 compass \ utilities \ color
我推断正确的路径应解析为:
php\sass\compass\utilities\color\brightness
您似乎希望将其包含在_contrast.scss
中:
compass\utilities\color\_contrast.scss
因此,从该目录中,您只需要执行以下操作:
@import "./brightness"
因为_brightness
部分与_contrast
部分在同一目录中。