문제

I need to upgrade my apps to Rails 3.2.16, when I did bundle update rails it gives me the following error.

Bundler could not find compatible versions for gem "tilt":
  In Gemfile:
    sass-rails (= 3.2.6) ruby depends on
      tilt (~> 1.3) ruby

    slim (>= 0) ruby depends on
      tilt (2.0.0)

My Gemfile:

gem 'sass-rails',   '~> 3.2.6'
gem 'slim'

I don't know how to fix this. Help please.

Thanks,

도움이 되었습니까?

해결책

Try explicitly adding 'tilt' to your Gemfile.

다른 팁

I quickly tried bundle installing just those two gems and got the following dependency tree in my Gemfile.lock.

sass-rails (3.2.6)
  railties (~> 3.2.0)
  sass (>= 3.1.10)
  tilt (~> 1.3)
slim (2.0.2)
  temple (~> 0.6.6)
  tilt (>= 1.3.3, < 2.1)

as one of the comments suggested maybe try explicitly specifying the version of slim to 2.0.2 as it only requires tilt 1.3.3 or greater which is compatible with the version of tilt that sass-rails requires

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top