Search code examples
ruby-on-railsruby-on-rails-4rubygemsgemfilegemfile.lock

Bundler could not find compatible versions for gem "sass"


I am using middleman 3.3.9 and

gem 'sass-rails', '~> 4.0.3'
gem 'bootstrap-sass', '~> 3.3.1'
gem 'bootstrap-timepicker-rails'
gem 'sass', '~> 3.2.19'

When I run bundle install, I get this error:

Bundler could not find compatible versions for gem "sass":
      In Gemfile:
        middleman (~> 3.3.9) ruby depends on
          sass (< 4.0, >= 3.4.0) ruby

        sass (3.2.19)

How can I make this pass?


Solution

  • You're having a dependent gem conflict problem. You've locked sass-rails down so it can't bring in a sass that's new enough to satisfy the version of middleman that you're running.

    You need to either lower the version of middleman that you're using, or increase the version of sass-rails.