Locally served jekyll is broken

when running bundle exec jekyll i get the following error:
jekyll 3.9.0 | Error: no implicit conversion of Hash into Integer
.../vendor/bundle/ruby/3.0.0/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read': no implicit conversion of Hash into Integer (TypeError)

i’ve heard it may be related to the ruby version so i changed
rvm use 2.7.0 --default
even after that it still fails with the initial error, probably not having the effect i anticipated bc it still uses 3.0.0.

Try comment out everything in your config and build again.

Then uncomment sections one by one and check at each point

Also you can search the forums for your exact error.

Also the good old approach is make a new jekyll site locally with minimal content and see if it runs.

And then move content from one repo to the other until you see a change in failing state

If you run Jekyll with --verbose you’ll also see what Jekyll was doing just before it errored