After updating to Flarum 2.0.0-rc.2 I'm getting a console error when both flarum/tags and flarum/realtime are enabled. The error doesn't affect functionality, but I'd like to understand if it's a known issue.
Error
flarum-tags failed to initialize
TypeError: mt(...) is not a constructor
at extendRealtime.ts:4:3
Root cause
In the assembled forum.js, flarum/tags calls flarum.reg.get("flarum-realtime", "forum/extenders/Realtime") at module load time (byte offset 680917), but flarum/realtime only calls flarum.reg.add(...) later (byte offset 807933). Webpack's s.n() wraps the result in an arrow function, which cannot be used as a constructor with new.
Disabling flarum/realtime makes the error disappear. Realtime itself works correctly. Is this a known compilation issue with rc.2, or is there something wrong on my end? You can reproduce it by visiting my forum
Flarum core: 2.0.0-rc.2 (7208fc6ded739936732b633f74e0c86fbafb7be1)
PHP version: CLI: 8.3.6, Web: 8.3.6
PHP memory limit: CLI: 512M, Web: 512M
MySQL version: 8.0.46
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, intl, exif, mcrypt, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+-------------------------------+---------------+------------------------------------------+-------+
| Flarum Extensions | | | |
+-------------------------------+---------------+------------------------------------------+-------+
| ID | Version | Commit | Notes |
+-------------------------------+---------------+------------------------------------------+-------+
| flarum-suspend | v2.0.0-rc.2 | | |
| flarum-tags | v2.0.0-rc.2 | | |
| fof-oauth | 2.0.0-beta.3 | | |
| fof-pages | 2.0.0-beta.2 | | |
| flarum-realtime | v2.0.0-rc.2 | | |
| fof-default-user-preferences | 2.0.0-beta.2 | | |
| fof-byobu | 2.0.0-beta.11 | | |
| flarum-markdown | v2.0.0-rc.2 | | |
| walsgit-recycle-bin | 2.0.4 | | |
| resofire-blog-cards | v2.1.0 | | |
| ramon-stickers | v2.0.16 | | |
| ramon-point-system | dev-main | | |
| ramon-auth-modals | 2.0.2 | | |
| ralkage-profile-messages | v2.0.0-rc.1 | | |
| pianotell-flamoji | v2.1.0 | | |
| linkrobins-font-sizer | v1.3.0 | | |
| ianm-log-viewer | 2.0.0-beta.2 | | |
| ianm-boring-avatars | 2.0.0-beta.2 | | |
| huseyinfiliz-stickiest | 2.0.0-beta.2 | | |
| huseyinfiliz-show-password | 2.0.0-beta.1 | | |
| huseyinfiliz-modern-footer | v2.0.0-beta.1 | | |
| huseyinfiliz-leaderboard | 2.0.0-beta.1 | | |
| huseyinfiliz-diff | 2.0.0-beta.4 | | |
| huseyinfiliz-awards | 2.0.0-beta.2 | | |
| forumaker-yandex-smartcaptcha | 2.2.2 | | |
| forumaker-yandex-oauth | 2.2.0 | | |
| forumaker-steam-oauth | 2.1.1 | | |
| forumaker-profile-cover | 2.4.0 | | |
| forumaker-magicstats | dev-main | | |
| forumaker-magicslider | 2.4.0 | | |
| forumaker-magicread | 2.4.0 | | |
| forumaker-magicdice | 2.1.0 | | |
| forumaker-magicbb | 2.4.4 | | |
| forumaker-bento | 2.4.0 | | |
| fof-user-directory | 2.0.0-beta.5 | | |
| fof-user-bio | 2.0.0-beta.3 | | |
| fof-upload | 2.0.0-beta.5 | | |
| fof-terms | 2.0.0-beta.6 | | |
| fof-socialprofile | 2.0.0-beta.2 | | |
| fof-sitemap | 3.0.0-beta.6 | | |
| fof-reactions | 2.0.0-beta.8 | | |
| fof-moderator-warnings | 2.0.0-beta.4 | | |
| fof-links | 2.0.0-beta.3 | | |
| fof-linguist | 2.0.0-beta.1 | | |
| fof-impersonate | 2.0.0-beta.2 | | |
| fof-formatting | 2.0.0-beta.2 | | |
| fof-drafts | 2.0.0-beta.7 | | |
| fof-disposable-emails | 2.0.0-beta.1 | | |
| fof-discussion-views | 2.0.0-beta.1 | | |
| fof-discussion-thumbnail | 2.0.0-beta.1 | | |
| fof-discussion-templates | 2.0.0-beta.1 | | |
| fof-checklist | 2.0.0-beta.1 | | |
| fof-badges | 2.0.0-beta.1 | 2683c952cce74654a6ad905317820d334c9a8120 | |
| flarum-subscriptions | v2.0.0-rc.2 | | |
| flarum-sticky | v2.0.0-rc.2 | | |
| flarum-statistics | v2.0.0-rc.2 | | |
| flarum-nicknames | v2.0.0-rc.2 | | |
| flarum-mentions | v2.0.0-rc.2 | | |
| flarum-lock | v2.0.0-rc.2 | | |
| flarum-lang-russian | 2.0.31 | | |
| flarum-lang-english | v2.0.0-rc.2 | | |
| flarum-extension-manager | v2.0.0-rc.2 | | |
| flarum-emoji | v2.0.0-rc.2 | | |
| flarum-bbcode | v2.0.0-rc.2 | | |
| ernestdefoe-theme-toggle | 3.0.6 | | |
| ernestdefoe-seo | 2.0.11 | | |
| ekumanov-forum-widgets | v1.6.1 | | |
| datlechin-link-preview | v2.0.0-beta.2 | | |
| acpl-mobile-tab | 2.0.0-beta.10 | | |
+-------------------------------+---------------+------------------------------------------+-------+
Base URL: https://questpost.ru
Installation path: /var/www/hide/data/www/questpost.ru/public
Queue driver: redis
Session driver: redis (Code override. Configured to file)
Scheduler status: Active
Mail driver: smtp
Debug mode: off