Open nanocodex opened 9 months ago
Update: The solution I found was to update jekyll-admin to the latest version:
gem 'jekyll-admin', '~> 0.11.1'
I got the following error when I tried launching Jekyll Admin on rack version 3.0.10:
<internal:C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- rack/handler (LoadError)
After searching, I found this post saying that:
As of version 3.0
Rack::Handler
was removed fromrack
and pulled out into its own gem (rackup
).
To fix the error, add gem 'rackup'
to the gemfile:
gem 'rack'
gem 'rackup'
Upon further local testing, it seems that Jekyll Admin has trouble allowing me to change and edit files when using the rack ~> 3.0
and rackup
gems.
Respective versions that caused this bug to happen are as follows:
Rolling back rack
to a version below 3.0 (I used version 1.6.13
) and hence removing the rackup gem seems to solve the problem. However, Jekyll Admin still says that it "could not fetch the config" even if the _config.yml
file was successfully updated. Just like the issue linked, it has the exact same issue when updating any other file in the site.
Regardless of whether Jekyll Admin is using gem "rack", "< 3.0"
or gem "rack", "~> 3.0"
paired with gem "rackup"
, the homepage configuration no longer works, instead always defaulting to pages
. No matter what you set it as in _config.yml
:
jekyll_admin:
homepage: "posts"
The above configuration does not work.
Description:
I was locally hosting WhatATheme for my personal website. But when I navigated to
http://localhost:4000/admin
, I got the error log shown below.Tell us a bit about yourself:
bundle show
to check>: 0.9.0bundle show
to check>: 3.9.5node -v
to check>: v18.17.0Steps to reproduce:
bundle exec jekyll serve --livereload
http://localhost:4000/admin
I expected the following:
The Jekyll Admin GUI for version 0.9.0 to load
But got the following, instead:
A blank page and the following chunk of error log:
Other details: