我正在为我的项目使用foundation5并完成其网站和http://thesassway.com 1中定义的所有设置,但是当我使用@import"基础&#34 ;;进行导入时或@import"基础/组件/顶栏&#34 ;;我收到了以下错误
error sass/screen.scss (Line 7: File to import not found or unreadable: foundation.
Load paths:
/media/oem/Python/Self programs/mycache/mycache/templates/mycss/sass
/usr/share/compass/frameworks/blueprint/stylesheets
/usr/share/compass/frameworks/compass/stylesheets
Compass::SpriteImporter)
config.rb文件
require 'foundation'
http_path = "/"
css_dir = "stylesheets"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "javascripts"
当我在包括要求'基础'在config.rb文件中然后我得到以下错误
命令 - > "罗盘手表 - 追踪"给出
LoadError on line ["36"] of /usr/lib/ruby/1.9.1/rubygems/custom_require.rb: cannot load such file -- foundation
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/vendor_ruby/compass/configuration/data.rb:161:in `require'
/media/oem/Python/Self programs/mycache/mycache/templates/mycss/config.rb:4:in `get_binding'
/usr/lib/ruby/vendor_ruby/compass/configuration/serialization.rb:24:in `eval'
/usr/lib/ruby/vendor_ruby/compass/configuration/serialization.rb:24:in `parse_string'
/usr/lib/ruby/vendor_ruby/compass/configuration/serialization.rb:15:in `block in _parse'
/usr/lib/ruby/vendor_ruby/compass/configuration/serialization.rb:14:in `open'
/usr/lib/ruby/vendor_ruby/compass/configuration/serialization.rb:14:in `_parse'
/usr/lib/ruby/vendor_ruby/compass/configuration/file_data.rb:7:in `block in new_from_file'
/usr/lib/ruby/vendor_ruby/compass/configuration/inheritance.rb:204:in `with_defaults'
/usr/lib/ruby/vendor_ruby/compass/configuration/file_data.rb:6:in `new_from_file'
/usr/lib/ruby/vendor_ruby/compass/configuration/helpers.rb:42:in `configuration_for'
/usr/lib/ruby/vendor_ruby/compass/configuration/helpers.rb:97:in `add_project_configuration'
/usr/lib/ruby/vendor_ruby/compass/commands/project_base.rb:31:in `add_project_configuration'
/usr/lib/ruby/vendor_ruby/compass/commands/project_base.rb:25:in `configure!'
/usr/lib/ruby/vendor_ruby/compass/commands/project_base.rb:15:in `initialize'
/usr/lib/ruby/vendor_ruby/compass/commands/update_project.rb:37:in `initialize'
/usr/lib/ruby/vendor_ruby/compass/exec/sub_command_ui.rb:42:in `new'
/usr/lib/ruby/vendor_ruby/compass/exec/sub_command_ui.rb:42:in `perform!'
/usr/lib/ruby/vendor_ruby/compass/exec/sub_command_ui.rb:15:in `run!'
/usr/bin/compass:30:in `block in <main>'
/usr/bin/compass:44:in `call'
/usr/bin/compass:44:in `<main>'
所以现在我该如何解决这些问题?
谢谢
答案 0 :(得分:2)
从官方网站: 从基础5开始,不再有Compass扩展。相反,我们使用bower来保持基金会资产与您的项目保持同步。
您需要更新config.rb文件夹以更改此行:
需要“zurb-foundation” 至: add_import_path“bower_components / foundation / scss”
这就是罗盘无法找到基础的原因