站点无法加载,使用 2.4.5 和稳定分配时

您好,我刚将我的站点更新到 2.4.5 以及 assign 插件的最新稳定分支,但我的站点显示为空白页面,除非我禁用 assign 插件。如果我能提供任何诊断信息,请告知我。

在您的 app.yml 中,您是否克隆了该插件的稳定分支?

在你的 app.yml 中,你是否克隆了插件的稳定分支?

是的,就像这样

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-styleguide.git
          - git clone --branch stable https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-user-notes.git
          - git clone https://github.com/discourse/discourse-checklist.git
          - git clone --branch stable https://github.com/discourse/discourse-assign.git

如果您使用以下命令会怎样:

git clone --single-branch --branch stable

如果你使用以下命令会怎样:

git clone --single-branch --branch stable

这会导致同样的问题。为什么添加 --single-branch 会产生影响?

顺便提一下,这里是导致网站渲染失败的 JS 错误:

TypeError: t.addKeyboardShortcut is not a function _discourse-assign-247a26621189a1714b70bd1b1b82b3a6fecb3b42abd693e59778ada8c009780f.js:732:8
    initialize _discourse-assign-247a26621189a1714b70bd1b1b82b3a6fecb3b42abd693e59778ada8c009780f.js:732
    withPluginApi _application-ed0ac692ab93afd4124933b80c2b9e44bca02a77b73366b3e67eef88e883e0db.js:21205
    initialize _discourse-assign-247a26621189a1714b70bd1b1b82b3a6fecb3b42abd693e59778ada8c009780f.js:743
    initialize _application-ed0ac692ab93afd4124933b80c2b9e44bca02a77b73366b3e67eef88e883e0db.js:7258
    jQuery 21