Angus,在最新版本中,有一个问题可能会阻止 TC 工作(https://meta.discourse.org/t/3-5-0-beta2-dev-theme-component-have-become-nonoperative/357485)。
Uncaught Error: Could not find module `discourse/mixins/singleton` imported from `discourse/plugins/discourse-events/discourse/models/provider`
at loader.js:247:1
at h (loader.js:258:1)
at u.findDeps (loader.js:168:1)
at h (loader.js:262:1)
at u.findDeps (loader.js:168:1)
at h (loader.js:262:1)
at requireModule (loader.js:24:1)
at y (app.js:170:18)
at b (app.js:193:19)
at app.js:156:29
at g.start (app.js:167:1)
at HTMLDocument.<anonymous> (start-app.js:5:7)
at discourse-boot.js:13:12
at discourse-boot.js:1:1
我认为这与此更改有关,其中 mixin 已重构为类装饰器:https://github.com/discourse/discourse/pull/30498。