2015-05-15 3 views
0

Просто добавил фильтры Compass к моей базе кода.Ошибка компаса: файл для импорта не найден или нечитабельно

// This file is main.scss 
@import "breakpoint"; 
@import "compass/css3"; 
@import "compass/css3/user-interface"; 
@import "compass/css3/transform"; 
// Just added filters. 
@import "compass/css3/filters"; 
@import "compass/utilities/general/clearfix"; 

@import "base/base"; 
@import "views/views"; 

Теперь компас компилировать задачи неудачу и дает следующее сообщение об ошибке:

error wp-content/themes/example/styles/main.scss (Line 5: File to import not found or unreadable: compass/css3/filters. 
Load paths: 
    Compass::SpriteImporter 
    /Users/me/example/wp-content/themes/example/styles 
    /Library/Ruby/Gems/2.0.0/gems/compass-core-1.0.3/stylesheets 
    /Library/Ruby/Gems/2.0.0/gems/sassy-maps-0.4.0/sass 
    /Library/Ruby/Gems/2.0.0/gems/breakpoint-2.5.0/stylesheets) 
Compilation failed in 1 files. 
Warning: ↑ Use --force to continue. 

Aborted due to warnings. 

Я, вероятно, отсутствует очевидный шаг в моей установке компаса. Но да, компиляция отлично работала, прежде чем добавлять фильтры.

ответ

2

У вас есть опечатка. Правильный synatax является:

@import "compass/css3/filter"; // <-- Note 'filter', not 'filters'

См Compass documentation.

+0

Веселый. Спасибо!!! – jerome

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

  • Нет связанных вопросов^_^