首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到或无法读取要导入的文件: Bourbon

找不到或无法读取要导入的文件: Bourbon
EN

Stack Overflow用户
提问于 2011-10-04 05:18:13
回答 1查看 4.3K关注 0票数 2

我最近升级到了Rails3.1,还在我的Rails3.1应用程序中安装了Bourbon gem。将这段代码添加到我的gemfile中:gem 'bourbon'并运行$ bundle install,但在我的application.css.scss中添加@import "bourbon";行时,我得到以下错误:

代码语言:javascript
复制
File to import not found or unreadable: bourbon.
Load path: Sass::Rails::Importer ...

这是我的application.css.scss文件

代码语言:javascript
复制
/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope. 
 *= require_self
*/
@import "bourbon";
@import "scaffold.css.scss";
.hidden{
    display:none;
}

你知道怎么加载布邦吗?我做错了什么?

我猜rails需要生成一些文件才能访问bourbon库,不是吗?

如有任何帮助或线索,我们将不胜感激

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-10-05 22:09:44

alik,尝试在gem文件中指定gem版本号。https://rubygems.org/gems/bourbon

宝石“波旁”,"~> 0.2.1“

rake波旁酒:在rails 3.1+上安装对你没有帮助

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7640768

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档