【发布时间】:2015-02-05 15:18:22
【问题描述】:
每当我尝试在我的项目的资产文件夹(我有 sass、样式表和 config.rb 的地方)内运行 compass watch 时,我都会收到 2 个错误:
错误 1:“LoadError on line ["36"] of C: cannot load such file – bootstrap-sass / Run with --trace to see the full回溯”
错误 2(不太常见):C 的 ["36"] 行上的 LoadError:无法加载此类文件 – font-awesome-sass / 使用 --trace 运行以查看完整 回溯”
我通常通过运行“gem install bootstrap-sass”和“gem install font-awesome-sass' 在项目文件夹中。
今天,当我在资产文件夹中运行“指南针手表”时,我收到了这个错误:
C: 未初始化的常量 FontAwesome::Sass::VERSION 使用 --trace 运行 查看完整的回溯。
我尝试在主项目文件夹、资产文件夹和用户文件夹中重新安装 de font-awesome-sass,但仍然出现此错误。
有人可以帮忙吗?
我在 Windows 8.1 上运行
我的 config.rb 文件是
require 'bootstrap-sass'
require 'font-awesome-sass'
require 'compass/import-once/activate'
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
relative_assets = true
Sass 3.4.10(选择性史蒂夫) 指南针 1.0.3(北极星) 红宝石 1.9.3p551
提前致谢!
【问题讨论】:
标签: css ruby sass compass-sass compass