Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)):
like image 381
Manish Shrivastava Avatar asked Mar 13 '12 13:03

Manish Shrivastava


2 Answers

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

@import filename to @import filename.css.sass

like image 163
Jonathan Avatar answered Oct 14 '22 00:10

Jonathan


I had trouble getting a production server to work (both a local Apache/Passenger setup and the built-in WEBrick server).

The browser was redirected to the 500.html error page, and the log kept saying [GET /] miss. When I reloaded the page repeatedly, eventually I would receive an output similar to what Manish reported.

My Sass files each contained an @import 'base' statement to load common color and font definitions. Changing this to @import 'base.css.scss' and having config.assets.compile = true in config/environments/production.rb made both production servers work.

like image 25
bovender Avatar answered Oct 13 '22 22:10

bovender