[英]File to import not found or unreadable: compass watch cant run
hello guys i kind of stuck to find the problem here. 您好,我有点想在这里找到问题。 i can not run compass watch i dont know why
我无法运行指南针,我不知道为什么
i go to gitbash to check my version: 我去gitbash检查我的版本:
my ruby version ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
我的红宝石版本
ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
版ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
my compass version Compass 1.0.3 (Polaris)
我的指南针版本
Compass 1.0.3 (Polaris)
sass version Sass 3.4.23
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";
my main.scss on inside folder sass 我的main.scss放在内部文件夹sass中
@import "compass";
@import "sass/layout/header";
@import "sass/layout/footer";
and my config just like this 和我的配置就像这样
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"
please help me to find the problem 请帮助我发现问题
dumb me, just found out the porblem cause on my main.scss i include 愚蠢的我,刚刚发现我main.scss上的问题原因
@import "sass/layout/header";
it should only @import "layout/header";
它只能
@import "layout/header";
my bad 我的错
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.