3
votes

I did a bundle update for my Jekyll site, then tried to run bundle exec jekyll serve. I got the following console message:

Liquid Exception: Liquid syntax error (line 8): Unknown tag 'when' in vendor/bundle/ruby/2.4.0/gems/liquid-4.0.0/lib/liquid/locales/en.yml

I've tried the following:

  • uninstall/reinstall Jekyll

  • uninstall/reinstall Gems

  • uninstall/reinstall Ruby

  • install RVM

  • do rm Gemfile.lock

  • run bundle update

Curiously, when I run rvm list, it says * ruby-2.4.1 [ x86_64 ]. Even though the error message says is looking at 2.4.0. I then ran rvm list known to find version 4.0.0 but it wasn't listed.

Thanks in advance.

2

2 Answers

2
votes

In you Jekyll directory:

Remove bundle config and gems:

rm -r .bundle
rm -r vendor

Install gems with bundle:

bundle install

Run jekyll with it:

bundle exec jekyll s
0
votes

For reference, when I got this error it was because of a badly formed exclude command in _config.yml