Sass import error in Rails 3 app - “File to import not found or unreadable: compass”

后端 未结 7 1260
梦如初夏
梦如初夏 2020-12-03 07:23

I have a Rails 3 app on which I successfully ran compass init rails ./ --using blueprint. I can @import files from the /stylesheets directory, but

7条回答
  •  鱼传尺愫
    2020-12-03 07:42

    I fixed this error like this:

    In application.rb I had

    Bundler.require(:default, Rails.env) if defined?(Bundler)  
    

    and changed to

    Bundler.require(:default, :assets, Rails.env) if defined?(Bundler)
    

    This was after updating a project from 3.0.3 to 3.2.13

提交回复
热议问题