gpt4 book ai didi

javascript - Heroku + Rails 错误 : "Entering the V8 API without proper locking in place"

转载 作者:行者123 更新时间:2023-12-02 20:15:50 25 4
gpt4 key购买 nike

ActionView::Template::Error (HandleScope::HandleScope: Entering the V8 API without proper locking in place
(in /app/app/assets/javascripts/application.js)):
3: <head>
4: <title>Reminders</title>
5: <%= stylesheet_link_tag "application" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: <link rel="stylesheet" type="text/css" href="/assets/stylesheets/bg_<%= current_or_guest_user.background %>.css" />
9: </head>
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___1680303581718722157_49016340'

知道是什么原因造成的吗?我是 ruby​​、rails 和 heroku 的新手,所以我可能做错了很多事情。

如果我去掉 javascript_include_tag,我的应用程序就会运行,但当然我不会得到 javascript。

最佳答案

ExecJS 1.1.3 实现了 V8 的锁定。这应该可以解决您的 JS 缩小问题。

https://github.com/sstephenson/execjs/commit/a48bc7c7ad03bec4f8abde1fa76c95cccc59f818#comments

关于javascript - Heroku + Rails 错误 : "Entering the V8 API without proper locking in place",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6325140/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com