我最近安装了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错误?任何帮助都将不胜感激!
发布于 2014-05-10 00:56:44
我从来没有通过Sublime构建过Sass,但一般的做法是将Bourbon和Neat安装在样式表目录中,这是您的@import路径所建议的,所以请查看该目录。
检查ST在该版本中使用了哪些库,例如,Compass 0.12.5与Sass 3.3和更新版本不兼容。
另外,请查看此link以了解安装说明和依赖项。
发布于 2015-05-01 19:16:01
波旁必须与你用SASS编译的文件在同一目录级。例如scss/index.scss。
然后,必须将Bourbon安装在scss目录中,该目录可以使用以下命令进行编译:
$> sass ---watch scss:csshttps://stackoverflow.com/questions/22055752
复制相似问题