基盤がインストールされていて、app.scssファイルを編集して保存すると、 "app.css"ファイルと "config.rb"ファイルが作成されます。私のプロジェクトのsassフォルダにあります。私はその「app.css」ファイルを開いたときに、私はこの構文エラー:インポートするファイルが見つからないか、または読み込めない:foundation/common/ratios
Syntax error: File to import not found or unreadable: foundation/common/ratios.
を取得し、その下に、私はこれを取得:
File to import not found or unreadable: foundation/common/ratios.
Load paths:
/Applications/MAMP/htdocs/WebApp02/sass
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets
Compass::SpriteImporter
on line 1 of /Applications/MAMP/htdocs/WebApp02/sass/_settings.scss
from line 2 of /Applications/MAMP/htdocs/WebApp02/sass/app.scss
、その後、私の宝石へのパスの束。
私は誰もがそれが起こっている理由を説明できるかどうか疑問に思う前に、私のsassフォルダにapp.cssとconfig.rbファイルを作成したことはありません。コンパスはまだ "stylesheet"フォルダ内のapp.cssに準拠していますが、これからのエラーを避けるためにこれを修正したいと思います。
config.rbファイルには、私はシナトラと私のプロジェクトで同じエラーを持っていたこの
require 'zurb-foundation'
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"
You can select your preferred output style here (can be overridden via the command line):
output_style = :expanded or :nested or :compact or :compressed
To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = true
config.rbの外観は? – cimmanon
元の質問 –