Search code examples
rubyjekylloctokitjekyll-theme

jekyll minimal mistakes theme throwing "uninitialized constant Faraday::Error::ClientError (NameError)"


I'm new to using jekyll and tried installing the minimal-mistakes-jekyll theme as a gem. Added the gem minimal-mistakes-jekyll to my gemfile, updated it with the bundle command, and set it as theme in _config.yml on a directory created by jekyll new mywebsite but it's giving me this error when I try to run bundle exec jekyll serve:

/home/theo/gems/gems/octokit-4.14.0/lib/octokit/middleware/follow_redirects.rb:14:in `': uninitialised constant Faraday::Error::ClientError (NameError) Did you mean? Faraday::ClientError

which persists when I tried using different versions of jekyll. I'm not sure how to fix this, any help would be appreciated! Running Ubuntu 19.04 and ruby 2.5.5, if that's useful.


Solution

  • I managed to fix the problem by editing the Gemfile and specifying manually the 0.17.3 version which seams to be the last official release:

    source 'https://rubygems.org'
    gem 'github-pages', group: :jekyll_plugins
    gem 'faraday', '0.17.3'
    

    After doing that you'll need to run the following command:

    rm Gemfile.lock
    bundle install