微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Jekyll::Drops::CollectionDrop:Class (NoMethodError)

如何解决Jekyll::Drops::CollectionDrop:Class (NoMethodError)

我在执行 jekyll 服务时遇到了 jekyll 问题,出现以下错误

~/agency-jekyll-theme-gh-pages$ jekyll serve --trace --incremental
Traceback (most recent call last):
    14: from /home/yossef/gems/bin/jekyll:23:in `<main>'
    13: from /home/yossef/gems/bin/jekyll:23:in `load'
    12: from /home/yossef/gems/gems/jekyll-4.2.0/exe/jekyll:8:in `<top (required)>'
    11: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
    10: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
     9: from /home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll.rb:191:in `<top (required)>'
     8: from /home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll.rb:12:in `require_all'
     7: from /home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll.rb:12:in `each'
     6: from /home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll.rb:13:in `block in require_all'
     5: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
     4: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
     3: from /home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll/drops/collection_drop.rb:3:in `<top (required)>'
     2: from /home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll/drops/collection_drop.rb:4:in `<module:Jekyll>'
     1: from /home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll/drops/collection_drop.rb:5:in `<module:Drops>'
/home/yossef/gems/gems/jekyll-4.2.0/lib/jekyll/drops/collection_drop.rb:10:in `<class:CollectionDrop>': undefined method `delegate_method_as' for Jekyll::Drops::CollectionDrop:Class (NoMethodError)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。