【问题标题】:File to import not found or unreadable: compass watch cant run找不到或无法读取要导入的文件:指南针手表无法运行
【发布时间】:2017-01-05 14:18:04
【问题描述】:

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

我去 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";

我的 main.scss 在里面的文件夹 sass

@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"

请帮我找出问题

【问题讨论】:

    标签: ruby sass


    【解决方案1】:

    愚蠢的我,刚刚在我的 main.scss 中发现了问题原因,我包含了

    @import "sass/layout/header";
    

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

    我的错

    【讨论】:

      猜你喜欢
      • 2013-03-08
      • 1970-01-01
      • 2015-04-27
      • 1970-01-01
      • 2012-03-27
      • 2014-06-17
      • 1970-01-01
      • 2011-08-25
      • 2012-10-12
      相关资源
      最近更新 更多