我遇到了 The message port closed before a response was received. 错误,同时在处理响应时还出现了 TypeError: Cannot read property 'loggedOut' of undefined。这个问题既出现在我正在开发的插件中,也出现在以下内容里:
https://github.com/pfaffman/discourse-custom-homepage-for-groups/blob/main/common/head_tag.html
我想这可能与 Upcoming core changes that may break some themes/components (April 12) 中提到的即将发生的核心变更有关,但具体原因尚不明确。
编辑:好吧,我已经修复了主题组件中的问题(它现在可以正常工作,不再报错),但我仍然看到上述错误。