我去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"
请帮我找到问题
答案 0 :(得分:0)
@import "sass/layout/header";
它应该只有@import "layout/header";
我的不好