Liquid 4.0.0 unknown error


#1

What is this error:


#2

This happens when you have multiple versions of a gem installed and conflicts arise. Try the suggestion in the error by prepending Jekyll commands with bundle exec

bundle exec jekyll serve
bundle exec jekyll build

#3

Do I need to use these command every time bundle exec to develop a jekyll website?


#4

Yes. It will eliminate a lot of dependency issues as it tells Bundler what gems to use according to your Gemfile and Gemfile.lock.


#5

Cloucannon has a good write up on gems and bundler:


#6

Is there is any way, by which we can remove the previous version and only keep the latest version of jekyll.


#7

gem uninstall jekyll


#8

But doesn’t it will uninstall the Jekyll completely from my local machine.


#9

Well isn’t that what you asked above? To remove a previous version of Jekyll you need to uninstall it. If you have multiple versions of a gem installed it will prompt you to pick which version or uninstall them all.


#10

Just to add to the already useful advice - If you’re concerned about lots of old versions hanging around, the --version option is really useful.


For example, check latest version with
jekyll --version

Then uninstall all versions before that
gem uninstall jekyll --version '<4.0.0'