Local github page deployment fails on Ruby >=3.0
Closed this issue · 0 comments
When following instructions to test github page deployment locally here
The following errors is seen after running bundle exec jekyll serve
gems/gems/kramdown-1.17.0/lib/kramdown/parser/html.rb:10:in `require': cannot load such file -- rexml/parsers/baseparser (LoadError)
This issue is due to some compatibility errors with Ruby 3.0 and Jekyll, and the general approach is to add "webrick" package to gemfile seen here
However, the gemfiles versions in the Gemfile.lock is too low and the error above will still persist.
To ensure that the local deployment works, the packages still needs to be updated via bundle update
.
Currently, there are 2 approaches to resolving this issue
Adding "webrick" to Gemfile
Update Gemfile.lock
via bundle update
Adding "webrick" to Gemfile
Delete and add Gemfile.lock
to .gitignore
Adding "webrick" is a necessary step for ruby versions >=3.0 in order for local testing to work.