SASS:未找到要导入的文件

时间:2014-09-15 23:11:44

标签: sass gruntjs zurb-foundation

我正在尝试使用grunt在我的项目上运行某些任务,但出于某种原因,我在运行sass任务时弹出错误。

这是我收到的错误:

Running "sass:dist" (sass) task
Syntax error: File to import not found or unreadable: settings.
              Load paths:
                /Users/x/Desktop/WordPress/wp-content/themes/theme
                /Users/x/Desktop/WordPress/wp-content/themes/theme/bower_components/foundation/scss
                /Users/x/Desktop/WordPress/wp-content/themes/theme/sass
                /Users/x/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/compass-0.12.7/frameworks/blueprint/stylesheets
                /Users/x/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/compass-0.12.7/frameworks/compass/stylesheets
                Compass::SpriteImporter
        on line 6 of assets/sass/app.scss
  Use --trace for backtrace.

我的文件夹看起来像这样,如果它有任何帮助:

enter image description here

我的.scss文件是这样的:

@import "normalize";
@import "settings"; 
@import "compass/css3";
@import "compass/css3/transform";
@import "compass/utilities";

似乎@import规范化很好,它只是对settings文件有问题。

对此有任何帮助表示赞赏。提前谢谢!

1 个答案:

答案 0 :(得分:2)

Normalize是settings以上的文件夹。你试过@import "foundation/settings";

吗?