You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sebawrite Thank you for reporting this issue with an attached demonstration.
However, we still don't have sufficient information to debug your issue.
If you check the Console tab in the browser's inspect frame (Right-click on the browser's main window to see options), you'd see additional information.
Try serving the site with the --trace switch. Then if you check the terminal window after the error flashes, you may also see some additional info there:
@ashmaroli I've ran it with --trace and also checked the console and network tabs, no error are displayed whatsoever.
I've tried running it on docker and also installed ruby 2.7.5 and 3.1.1 locally to check if it had something to do with ruby version. None of my attempts were successful.
You can use my repo to run it using docker and replicate the issue.
@ashmaroli Hi! I have the same problem. I'm running the app on docker. --trace shows me nothing, there's also nothing special in the browser console.
Error appears when I access or refresh "Posts" or "Pages" pages. If I switch between the two by clicking on the links in sidebar, the error doesn't occur. But each time it occurs, following line appears in my terminal (which runs jekyll serve --watch --draft --trace): jekyll-jekyll-1 | Configuration file: /srv/jekyll/_config.yml
It's funny because there doesn't seem to be anything wrong (so far, but I haven't written any posts from the admin yet), it's just that this notification is annoying.
Could you please help me in finding where it could come from?
I have had the same error, as well as a couple of others when trying to use jekyll-admin. Below you can see my bundle install of everything I am using in my site, as well as a trace of everything that happened when I was navigating the jekyll-admin site. In particular, I went to the main page of jekyll-admin, and received:
Going to the Data Files menu option gives me this error:
(base) me@mycomputer testsite % bundle install
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Fetching tilt 2.2.0
Fetching mustermann 3.0.0
Fetching rack-protection 3.1.0
Fetching multi_json 1.15.0
Installing rack-protection 3.1.0
Installing multi_json 1.15.0
Installing tilt 2.2.0
Installing mustermann 3.0.0
Fetching sinatra 3.1.0
Installing sinatra 3.1.0
Fetching sinatra-contrib 3.1.0
Installing sinatra-contrib 3.1.0
Fetching jekyll-admin 0.11.1
Installing jekyll-admin 0.11.1
Bundle complete! 10 Gemfile dependencies, 43 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
(base) me@mycomputer testsite % bundle exec jekyll serve
Configuration file: /Users/me/Projects/Jekyll/testsite/_config.yml
Source: /Users/me/Projects/Jekyll/testsite
Destination: /Users/me/Projects/Jekyll/testsite/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
/Users/me/Projects/Jekyll/testsite/_site/powerful-things-markdown-editor/index.html
- /Users/me/Projects/Jekyll/testsite/_posts/2019-01-24-powerful-things-markdown-editor.md
- /Users/me/Projects/Jekyll/testsite/_posts/2019-02-03-powerful-things-markdown-editor.md
done in 0.718 seconds.
Auto-regeneration: enabled for '/Users/me/Projects/Jekyll/testsite'
JekyllAdmin mode: production
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
Configuration file: /Users/me/Projects/Jekyll/testsite/_config.yml
Jekyll Feed: Generating feed for posts
Regenerating: 1 file(s) changed at 2023-09-12 13:34:01
_posts/2023-09-12-making-it-through-another-summer.md
Liquid Exception: undefined method `[]' for nil:NilClass @stats[filename][:time] += time ^^^^^^^ in /Users/me/Projects/Jekyll/testsite/_layouts/default.html
2023-09-12 13:34:01 - NoMethodError - undefined method `[]' for nil:NilClass
@stats[filename][:time] += time
^^^^^^^:
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer.rb:31:in `increment_time'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:73:in `ensure in measure_time'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:73:in `measure_time'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:129:in `render_liquid'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:192:in `render_layout'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:161:in `place_in_layouts'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:93:in `render_document'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:63:in `run'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:572:in `render_regenerated'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:557:in `block (2 levels) in render_docs'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `each'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `block in render_docs'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `each_value'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `render_docs'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:210:in `render'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:80:in `process'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-admin-0.11.1/lib/jekyll-admin/file_helper.rb:25:in `write_file'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-admin-0.11.1/lib/jekyll-admin/server/collections.rb:36:in `block (2 levels) in <class:Server>'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1763:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1763:in `block in compile!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1066:in `block (3 levels) in route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1084:in `route_eval'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1066:in `block (2 levels) in route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1115:in `block in process_route'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1113:in `catch'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1113:in `process_route'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1064:in `block in route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1061:in `each'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1061:in `route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1185:in `block in dispatch!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `catch'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `invoke'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1180:in `dispatch!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:996:in `block in call!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `catch'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `invoke'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:996:in `call!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:985:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/xss_header.rb:20:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/path_traversal.rb:18:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/json_csrf.rb:28:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/base.rb:53:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/base.rb:53:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/frame_options.rb:33:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-2.2.8/lib/rack/null_logger.rb:11:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-2.2.8/lib/rack/head.rb:12:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:219:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:2074:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1633:in `block in call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1849:in `synchronize'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1633:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-2.2.8/lib/rack/handler/webrick.rb:95:in `service'
/Users/me/.gem/ruby/3.1.4/gems/webrick-1.8.1/lib/webrick/httpserver.rb:140:in `service'
/Users/me/.gem/ruby/3.1.4/gems/webrick-1.8.1/lib/webrick/httpserver.rb:96:in `run'
/Users/me/.gem/ruby/3.1.4/gems/webrick-1.8.1/lib/webrick/server.rb:310:in `block in start_thread'
Jekyll Feed: Generating feed for posts
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
/Users/me/Projects/Jekyll/testsite/_site/powerful-things-markdown-editor/index.html
- /Users/me/Projects/Jekyll/testsite/_posts/2019-01-24-powerful-things-markdown-editor.md
- /Users/me/Projects/Jekyll/testsite/_posts/2019-02-03-powerful-things-markdown-editor.md
...done in 0.388789 seconds.
Configuration file: /Users/me/Projects/Jekyll/testsite/_config.yml
^C
%(base) me@mycomputer testsite % bundle exec jekyll serve --trace
Configuration file: /Users/me/Projects/Jekyll/testsite/_config.yml
Source: /Users/me/Projects/Jekyll/testsite
Destination: /Users/me/Projects/Jekyll/testsite/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
/Users/me/Projects/Jekyll/testsite/_site/powerful-things-markdown-editor/index.html
- /Users/me/Projects/Jekyll/testsite/_posts/2019-01-24-powerful-things-markdown-editor.md
- /Users/me/Projects/Jekyll/testsite/_posts/2019-02-03-powerful-things-markdown-editor.md
done in 0.748 seconds.
Auto-regeneration: enabled for '/Users/me/Projects/Jekyll/testsite'
JekyllAdmin mode: production
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
Configuration file: /Users/me/Projects/Jekyll/testsite/_config.yml
Jekyll Feed: Generating feed for posts
Regenerating: 1 file(s) changed at 2023-09-12 13:38:04
_posts/2023-09-12-making-it-through-another-summer.md
Liquid Exception: undefined method `[]' for nil:NilClass @stats[filename][:time] += time ^^^^^^^ in /Users/me/Projects/Jekyll/testsite/_layouts/default.html
2023-09-12 13:38:04 - NoMethodError - undefined method `[]' for nil:NilClass
@stats[filename][:time] += time
^^^^^^^:
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer.rb:31:in `increment_time'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:73:in `ensure in measure_time'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:73:in `measure_time'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:129:in `render_liquid'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:192:in `render_layout'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:161:in `place_in_layouts'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:93:in `render_document'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:63:in `run'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:572:in `render_regenerated'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:557:in `block (2 levels) in render_docs'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `each'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `block in render_docs'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `each_value'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `render_docs'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:210:in `render'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-4.3.2/lib/jekyll/site.rb:80:in `process'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-admin-0.11.1/lib/jekyll-admin/file_helper.rb:25:in `write_file'
/Users/me/.gem/ruby/3.1.4/gems/jekyll-admin-0.11.1/lib/jekyll-admin/server/collections.rb:36:in `block (2 levels) in <class:Server>'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1763:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1763:in `block in compile!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1066:in `block (3 levels) in route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1084:in `route_eval'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1066:in `block (2 levels) in route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1115:in `block in process_route'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1113:in `catch'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1113:in `process_route'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1064:in `block in route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1061:in `each'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1061:in `route!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1185:in `block in dispatch!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `catch'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `invoke'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1180:in `dispatch!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:996:in `block in call!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `catch'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1156:in `invoke'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:996:in `call!'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:985:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/xss_header.rb:20:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/path_traversal.rb:18:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/json_csrf.rb:28:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/base.rb:53:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/base.rb:53:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-protection-3.1.0/lib/rack/protection/frame_options.rb:33:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-2.2.8/lib/rack/null_logger.rb:11:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-2.2.8/lib/rack/head.rb:12:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:219:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:2074:in `call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1633:in `block in call'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1849:in `synchronize'
/Users/me/.gem/ruby/3.1.4/gems/sinatra-3.1.0/lib/sinatra/base.rb:1633:in `call'
/Users/me/.gem/ruby/3.1.4/gems/rack-2.2.8/lib/rack/handler/webrick.rb:95:in `service'
/Users/me/.gem/ruby/3.1.4/gems/webrick-1.8.1/lib/webrick/httpserver.rb:140:in `service'
/Users/me/.gem/ruby/3.1.4/gems/webrick-1.8.1/lib/webrick/httpserver.rb:96:in `run'
/Users/me/.gem/ruby/3.1.4/gems/webrick-1.8.1/lib/webrick/server.rb:310:in `block in start_thread'
Jekyll Feed: Generating feed for posts
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
/Users/me/Projects/Jekyll/testsite/_site/powerful-things-markdown-editor/index.html
- /Users/me/Projects/Jekyll/testsite/_posts/2019-01-24-powerful-things-markdown-editor.md
- /Users/me/Projects/Jekyll/testsite/_posts/2019-02-03-powerful-things-markdown-editor.md
...done in 0.375412 seconds.
^C%
(base) me@mycomputer testsite %
So if you don't have jekyll_admin.homepage configured in your _config.yml file, this will fail. IIUC, Jekyll Admin will also only read _config.yml and not other config files provided with --config (as per this PR) so if (like me) you have the jekyll_admin block in a different file, it'll still fail.
It would be nice to include the actual error message in the failure notification which would make reported failures clearer.
Activity
ashmaroli commentedon Dec 30, 2020
@sebawrite Thank you for reporting this issue with an attached demonstration.
However, we still don't have sufficient information to debug your issue.
If you check the
Consoletab in the browser'sinspectframe (Right-click on the browser's main window to see options), you'd see additional information.Try serving the site with the
--traceswitch. Then if you check the terminal window after the error flashes, you may also see some additional info there:mmm8955405 commentedon Dec 27, 2021
I have the same problem. I want to ask you how to solve it
gabrielgaraujo commentedon Mar 11, 2022
@ashmaroli I've ran it with
--traceand also checked the console and network tabs, no error are displayed whatsoever.I've tried running it on docker and also installed ruby 2.7.5 and 3.1.1 locally to check if it had something to do with ruby version. None of my attempts were successful.
You can use my repo to run it using docker and replicate the issue.
loudorge commentedon Jun 13, 2022
@ashmaroli Hi! I have the same problem. I'm running the app on docker.
--traceshows me nothing, there's also nothing special in the browser console.Error appears when I access or refresh "Posts" or "Pages" pages. If I switch between the two by clicking on the links in sidebar, the error doesn't occur. But each time it occurs, following line appears in my terminal (which runs
jekyll serve --watch --draft --trace):jekyll-jekyll-1 | Configuration file: /srv/jekyll/_config.ymlIt's funny because there doesn't seem to be anything wrong (so far, but I haven't written any posts from the admin yet), it's just that this notification is annoying.
Could you please help me in finding where it could come from?
n0kovo commentedon Jan 21, 2023
Did anyone figure out he problem here? I'm having the same issue.
y377 commentedon Feb 11, 2023
try your
_config.yml[need repair ]
[don't repair ]
ADTC commentedon May 14, 2023
@y377 what did you mean there? I have the same problem. No errors from browser console or trace option @ashmaroli
Snowmansir commentedon May 14, 2023
This is optional, and not the reason for this. Sweeping under the rug at best.
fiveRand commentedon Aug 14, 2023
It worked! Thank you!
alistaircom commentedon Sep 12, 2023
I have had the same error, as well as a couple of others when trying to use jekyll-admin. Below you can see my bundle install of everything I am using in my site, as well as a trace of everything that happened when I was navigating the jekyll-admin site. In particular, I went to the main page of jekyll-admin, and received:

Going to the Data Files menu option gives me this error:

alistaircom commentedon Sep 14, 2023
SOLUTION: The error shows up because there are no files to find. Once I created a new post, and added a data file, I no longer got either error.
y377 commentedon Sep 15, 2023
I’ll follow up on this question later, as I’m currently busy with other things. The author is no longer updating. Guys, we can only rely on ourselves.
edutrul commentedon Feb 19, 2024
This worked nice 🥳
nanocodex commentedon Apr 10, 2024
I'm still running into the
problem, and unfortunately
didn't help solve it. Has anyone else found a better workaround or a solution yet?
vcavallo commentedon May 30, 2024
This gemfile (snippet) works for me:
using jekyll 4.3.3 and jekyll-admin 0.11.1
willhbr commentedon Jan 5, 2026
I believe this is because of this destructuring in
App.js. It gets compiled to:So if you don't have
jekyll_admin.homepageconfigured in your_config.ymlfile, this will fail. IIUC, Jekyll Admin will also only read_config.ymland not other config files provided with--config(as per this PR) so if (like me) you have thejekyll_adminblock in a different file, it'll still fail.It would be nice to include the actual error message in the failure notification which would make reported failures clearer.