Pet*_*dis 5 ruby-on-rails bootsnap
我有一个使用 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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
304 次 |
| 最近记录: |