【问题标题】:Bourbon - Sass::SyntaxError: File to import not found or unreadable: bourbon/bourbonBourbon - Sass::SyntaxError:找不到或无法读取要导入的文件:bourbon/bourbon
【发布时间】:2014-03-30 03:05:43
【问题描述】:

我最近安装了 Bourbon Neat,但是当我使用 Sass Build 在 Sublime Text 2 中编译我的 Scss 时,我收到以下错误:

Sass::SyntaxError: File to import not found or unreadable: bourbon/bourbon.

这是我的 scss 文件:

@import "bourbon/bourbon";
@import "neat/neat";
$desktop: new-breakpoint(min-width 768px 12);
$tablet: new-breakpoint(max-width 768px 1);

.container {
 @include outer-container;
}
.content-pri {
 @include span-columns(9);
}
.content-sec {
 @include span-columns(3);
}

我是否错误地安装了 Bourbon 和 Neat?任何帮助将不胜感激!

【问题讨论】:

    标签: sass bourbon neat


    【解决方案1】:

    Bourbon 必须与您使用 SASS 编译的文件位于同一目录级别。例如scss/index.scss

    那么,Bourbon 必须安装在scss 目录下,可以编译:

    $> sass ---watch scss:css
    

    【讨论】:

      【解决方案2】:

      我从未通过 Sublime 构建过 Sass,但通常可以将 Bourbon 和 Neat 安装在样式表目录中,这是您的 @import 路径所建议的,所以请检查一下。

      检查 ST 为该构建使用了哪些库,例如Compass 0.12.5 与 Sass 3.3 及更高版本不兼容。

      还请查看此link 以获取安装说明和依赖项。

      【讨论】:

        猜你喜欢
        • 2014-06-15
        • 2011-11-30
        • 1970-01-01
        • 1970-01-01
        • 2018-01-01
        • 2017-04-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多