更新到 2.9.0.beta2 后实例损坏

在将实例一键更新到 2.9.0.beta2 后,我看到一个空白屏幕,并在开发者控制台中出现以下错误:

我正在使用以下插件:

3 个赞

这些是官方插件,不应该引起问题。

您是否尝试过在安全模式下查看您的网站?

遇到了同样的问题:

1 个赞

同样的问题:白屏 + JS 错误。

1 个赞

也有同样的问题……

1 个赞

我也是,我也是

1 个赞

我也是 :cold_sweat: 希望很快能有修复!

1 个赞

一样:\n\n\nloader.js:247 未捕获的错误:找不到从 `discourse-common/lib/raw-handlebars` 导入的模块 `handlebars`\n at loader.js:247:1\n at c (loader.js:258:1)\n at s.findDeps (loader.js:168:1)\n at c (loader.js:262:1)\n at s.findDeps (loader.js:168:1)\n at c (loader.js:262:1)\n at requireModule (loader.js:24:1)\n at discourse-boot.js:12:1\n at Array.forEach (\u003canonymous\u003e)\n at discourse-boot.js:10:1\n

1 个赞

这里也有同样的问题,js 控制台中出现了相同的错误。

Uncaught Error: Could not find module `handlebars` imported from `discourse-common/lib/raw-handlebars`
    at loader.js:247:1
    at c (loader.js:258:1)
    at s.findDeps (loader.js:168:1)
    at c (loader.js:262:1)
    at s.findDeps (loader.js:168:1)
    at c (loader.js:262:1)
    at requireModule (loader.js:24:1)
    at discourse-boot.js:12:1
    at Array.forEach (<anonymous>)
    at discourse-boot.js:10:1

我们正在使用以下插件:

我在构建过程中收到以下警告:

Bundle complete! 127 Gemfile dependencies, 176 gems now installed.
Gems in the groups 'test' and 'development' were not installed.
Bundled gems are installed into `./vendor/bundle`

I, [2022-02-14T13:34:51.839391 #1]  INFO -- : > cd /var/www/discourse && [ ! -d 'node_modules' ] || su discourse -c 'yarn install --production && yarn cache clean'
warning Resolution field "lodash@4.17.21" is incompatible with requested version "lodash@4.17.15"
warning "> @mixer/parallel-prettier@2.0.1" has unmet peer dependency "prettier@^2.0.0".
1 个赞

我已尝试安全模式,也遇到了 handlebars 缺失错误。应用程序上只有白屏,左上角显示加载时间(毫秒)。

Uncaught Error: Could not find module `handlebars` imported from `discourse-common/lib/raw-handlebars`
    at loader.js:247:1
    at c (loader.js:258:1)
    at s.findDeps (loader.js:168:1)
    at c (loader.js:262:1)
    at s.findDeps (loader.js:168:1)
    at c (loader.js:262:1)
    at requireModule (loader.js:24:1)
    at discourse-boot.js:12:1
    at Array.forEach (<anonymous>)
    at discourse-boot.js:10:1

我正在查看此内容。是否有人可以分享一个包含此问题的网站链接?(如果方便,可以通过私信分享,如果您不希望公开)

2 个赞

我不确定我是否有权限给你发私信 - 因为我刚加入……

1 个赞

我现在有一些例子了,谢谢大家!

3 个赞

我刚刚推送了一个修复程序:FIX: Update application_helper logic now that Ember CLI is default (#… · discourse/discourse@f078d1a · GitHub

请再运行一次更新——这应该能让一切恢复正常。非常抱歉造成了干扰!

@Anton_Akhmerov @RobertBrockie @pinkd @simevo @Canapin @CRCinAU @Alex_Harrington @k4rtik

15 个赞

运行所需更新是否足够?

# cd /var/discourse/
# ./launcher rebuild app

是的,或者您也可以在地址栏中输入网址,例如 https://your-site.com/admin/upgrade - 即使主应用程序已损坏,更新界面也应该仍然可用。

3 个赞

确认 - 已更新,一切恢复正常。谢谢 @david

2 个赞

是的,这对我也奏效了。谢谢 @david

3 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.