要导入的文件未找到或不可读:罗盘手表无法运行

时间:2017-01-05 04:16:55

标签: ruby sass

你好,我有点坚持在这里找到问题。 我无法运行指南针观看我不知道为什么

我去gitbash检查我的版本:

我的红宝石版ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]

我的罗盘版Compass 1.0.3 (Polaris)

sass版本Sass 3.4.23

/*
    Error: File to import not found or unreadable: sass/layout/header.
           Load paths:
             Compass::SpriteImporter
             C:/xampp/htdocs/test/sass
             C:/Ruby23/lib/ruby/gems/2.3.0/gems/compass-core-1.0.3/stylesheets
            on line 2 of C:/xampp/htdocs/test/sass/main.scss

    1: @import "compass";
    2: @import "sass/layout/header";
    3: @import "sass/layout/footer";

我在内部文件夹sass上的main.scss

@import "compass";
@import "sass/layout/header";
@import "sass/layout/footer";

和我的配置就像这样

require 'compass/import-once/activate'
# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "../"
css_dir = "assets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"

请帮我找到问题

1 个答案:

答案 0 :(得分:0)

愚蠢的我,刚刚发现我的main.scss上的问题原因包括

@import "sass/layout/header";

它应该只有@import "layout/header";

我的不好