最近在全新的 VPS 上设置了一个新的 Discourse (Discourse v3.4.0.beta3-dev)。
当我启用 Google OAuth 并前往 /signup 页面,然后使用新的 Google 用户注册时,一切都通过 Google 顺利进行,但是当 OAuth 返回到我的网站时,我在控制台中收到一个 JS 错误:
rsvp.js:23 Uncaught TypeError: Cannot read properties of undefined (reading 'set')
at auth-complete.js:145:38
at Array.forEach (<anonymous>)
at auth-complete.js:144:57
at _ (rsvp.js:434:1)
at y (rsvp.js:420:1)
at invoke (backburner.js.js:282:1)
at d.flush (backburner.js.js:197:1)
at p.flush (backburner.js.js:358:1)
at B._end (backburner.js.js:798:1)
at B.end (backburner.js.js:589:1)
at B._runExpiredTimers (backburner.js.js:905:1)
然而,如果我前往 /login 页面并执行相同的操作,则一切正常。
当我在这里尝试注册时,也出现了此 bug,因此这不仅仅是我的安装问题。