Which gem is breaking Rails application.css.scss wrong number of arguments 3 for 2

前端 未结 7 1827
面向向阳花
面向向阳花 2021-01-04 10:09

Okay. This is a new problem caused by a gem update. Calling bundle update breaks my rails application. Here are the gems that changed:

# Gemfile.lock
-            


        
7条回答
  •  春和景丽
    2021-01-04 11:09

    The problem is with sass. Here's a link to the the official issue.

    Locking sass-rails to version 4.0.3 has worked for me on rails-4.0.x through rails-4.1.x. In your Gemfile:

    gem 'sass-rails', '4.0.3'
    

    UPDATE

    A better solution I have found is to use the 4-0-stable branch:

    gem 'sass-rails', github: 'rails/sass-rails', branch: '4-0-stable'
    

提交回复
热议问题