se-edu / addressbook-level3

:ab::three: Address Book sample application (Level 3)
https://se-education.org/addressbook-level3
MIT License
27 stars 411 forks source link

Local github page deployment fails on Ruby >=3.0 #182

Closed Eclipse-Dominator closed 1 year ago

Eclipse-Dominator commented 1 year ago

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.