File to import not found or unreadable: compass

前端 未结 5 1566
野趣味
野趣味 2020-12-05 02:14

I successfully installed Sass, but I\'m having trouble importing Compass.

The following is the error detail:

*Syntax error: File to import not found          


        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 02:41

    I'm seeing this issue using Rails 4.0.2 and compass-rails 1.1.3

    I got past this error by moving gem 'compass-rails' outside of the :assets group in my Gemfile

    It looks something like this:

    # stuff
    gem 'compass-rails', '~> 1.1.3'
    group :assets do
      # more stuff
    end
    

提交回复
热议问题