I overhauled my CSS and may have removed some of my foundation files.
I get an error whenever I to compile anything with @import foundation
in it: "File to import not found or unreadable: foundation." However, require foundation
seems to work and foundation.css
is served no problem.
Even if I add require foundation_and_overrides
to application.scss
, Rails complains about the @import foundation
at the end of the required file.
Concatenation via require
alone would be fine if I only wanted to use Foundation's classes/base rules, but I need to use its mixins and variables too, for which I need @import
to work.
I tried running compass install foundation
in my assets directory, but even after massaging the files that gives me, I'm left with the same "File to import not found or unreadable: foundation" error (this time in the generated app.scss
).
How can I get @import foundation
to work?
I'm on Rails 3.2.13.
From my Gemfile:
gem 'sass-rails' # version 3.2.9
gem 'compass' # version 0.12.2
gem 'zurb-foundation' # version 4.2.1
EDIT
According to the stack trace, lib/sass/tree/import_node.rb:45 is throwing a SyntaxError. That line looks like:
paths = @options[:load_paths]
which reinforces my suspicion that this is a paths issue, and the sass gem simply can't talk to the foundation gem. I'm not really sure how to investigate further. Help, please and thank you!