Slim gives undefined error with middleman

We tried to find some blogs to solve this problem, could not do it.

Getting the following error while trying to start the broker server.

/var/lib/gems/1.9.1/gems/middleman-core-3.3.10/lib/middleman-core/renderers/slim.rb:31:in `registered': undefined method `set_options' for Slim::Engine:Class (NoMethodError)` 

Here is my gemfile β†’

 gem "middleman", "~>3.3.10" gem "slim", ">= 2.0" # Live-reloading plugin gem "middleman-livereload", "~> 3.1.0" # for faster file watcher updates on windows: gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] # windows does not come with time zone data gem "tzinfo-data", platforms: [:mswin, :mingw] gem 'middleman-php', :git => 'https://github.com/appjudo/middleman-php.git', :branch => 'master' gem 'skim' 

This is a gemlock file.

+5
source share
2 answers

I had the same problem after updating the old version of the broker to 3.4

I realized that my Slim was old, so I found the latest version by doing this on the command line:

 gem list slim --remote 

Then I updated my gemfile to include a newer version of slim, for example:

 gem "slim", "~> 3.0" 

Then I did bundle install and middleman , and the error was fixed.

+1
source

I had the same problem with my last site that I did bundle update and then bundle exec middleman s and somehow it bundle exec middleman s fine.

0
source

Source: https://habr.com/ru/post/1214375/


All Articles