1

对于 rails 5.2,我使用的是 trix-gem。升级到 rails 6.0 后,我在 js 控制台中有以下错误消息:

trix.js:1417 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "trix-toolbar" has already been used with this registry at http://localhost:3000/packs/js/application-9c991ca5ea3ec87c7961.js:36753:181

当然,我已经删除了 gemfile 中的 trix-gem,但我认为我的 rails 应用程序中总是有 2 个 trix.js,我该如何修复它?

4

0 回答 0