Search code examples
ruby-on-railscsshamlsasscompass-sass

Error: File to import not found or unreadable: fancy-buttons


I am seting up an existing rails project. But found an error below on installation.

Error: File to import not found or unreadable: fancy-buttons.

ActionView::Template::Error (File to import not found or unreadable: fancy-buttons.
Load paths:
  Sass::Rails::Importer(/home/cis/Desktop/manish1/hamlncompass/app/assets/stylesheets/partials/_buttons.sass)
 /home/cis/Desktop/manish1/hamlncompass/app/assets/stylesheets
 /home/cis/.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.alpha.4/frameworks/blueprint/stylesheets
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.alpha.4/frameworks/compass/stylesheets
Compass::SpriteImporter
(in  /home/cis/Desktop/manish1/hamlncompass/app/assets/stylesheets/partials/_buttons.sass)):

Solution

  • I had a similar problem, and the change involved changing:

    @import filename to @import filename.css.sass