今天最新更新后,我遇到了 Ember 问题。Discourse 网站可以打开(URL 中的根目录和 /admin 目录),但我只看到加载动画。JavaScript 控制台显示错误:
Uncaught (in promise) ReferenceError: Ember is not defined
<anonymous> qa-topic-tip.js:8
exports loader.js:106
requireModule loader.js:27
Ember 8
initialize component-templates.js:44
eachThemePluginTemplate component-templates.js:95
initialize component-templates.js:32
runInstanceInitializers Ember
each dag-map.js:191
walk dag-map.js:120
each dag-map.js:66
topsort dag-map.js:72
Ember 4
invoke backburner.js.js:280
flush backburner.js.js:197
flush backburner.js.js:358
_end backburner.js.js:798
_boundAutorunEnd backburner.js.js:523
promise callback*n/<> backburner.js.js:26
flush Ember
_scheduleAutorun backburner.js.js:964
_ensureInstance backburner.js.js:955
schedule backburner.js.js:648
Ember 5
<anonymous> start-app.js:4
<anonymous> discourse-boot.js:20
<anonymous> discourse-boot.js:1
在不带任何第三方插件重建时,我看到以下消息:
warning " > @glint/environment-ember-loose@1.1.0" has unmet peer dependency "@glimmer/component@^1.1.2".
warning " > @glint/environment-ember-template-imports@1.1.0" has unmet peer dependency "ember-template-imports@^3.0.0".
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
我不明白该怎么做。