3

我有一个使用 bootsnap 的 rails 应用程序,我目前无法运行该应用程序,因为我从 bootsnap 收到错误消息。

错误是 /Users/path/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require: no implicit conversion of String into Integer (TypeError)

Kernel_require.rb这是失败的方法。

def require_with_bootsnap_lfi(path, resolved = nil)
  Bootsnap::LoadPathCache.loaded_features_index.register(path, resolved) do
    require_without_bootsnap(resolved || path)
  end
end
4

0 回答 0