2014-09-10 5 views
1

Я никогда раньше не использовал Compass, хотя я использовал Sass некоторое время. Я получаю следующую ошибку :error sass/screen.scss (строка 9: файл для импорта не найден или нечитабельно: sass/_globals.scss

error sass/screen.scss (Line 9: File to import not found or unreadable: sass/_globals.scss.

_footer.scss файл находится в том же каталоге, что и файл _globals.scss, но он говорит, что он модифицируется, когда я делаю изменения в нем, что я делаю неправильно

.? Мой файл screen.scss.

/* Welcome to Compass. 
* In this file you should write your main styles. (or centralize your imports) 
* Import this file using the following HTML or equivalent: 
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ 

@import "compass/reset"; 
@import "compass/css3"; 
@import "compass/layout"; 
@import "sass/_globals.scss"; 
@import "sass/_footer.scss"; 

Это мой конфиг структура:

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 = "css" 
sass_dir = "sass" 
images_dir = "img" 
javascripts_dir = "js" 

# You can select your preferred output style here (can be overridden via the command line): 
# output_style = :expanded or :nested or :compact or :compressed 

# To enable relative paths to assets via compass helper functions. Uncomment: 
# relative_assets = true 

# To disable debugging comments that display the original location of your selectors. Uncomment: 
# line_comments = false 


# If you prefer the indented syntax, you might want to regenerate this 
# project again passing --syntax sass, or you can uncomment this: 
# preferred_syntax = :sass 
# and then run: 
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass 

ответ

0

Я предполагаю, что вам нужно изменить:

@import "sass/_globals.scss"; 
@import "sass/_footer.scss"; 

к:

@import "_globals.scss"; 
@import "_footer.scss"; 

Ваш дерзость конфигурационный файл уже указывает на подкаталог Sass , поэтому, если ваши файлы находятся в подкаталоге sass/sass, это, вероятно, проблема.

Смежные вопросы