@import指南针到ssss文件的问题

时间:2019-05-09 20:48:28

标签: sass compass-sass


我需要一些有关在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?
您知道这是什么原因吗?

1 个答案:

答案 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部分在同一目录中。