Compendium open issue due to lack of established connection
I have reports that several people are not able to open compendiums. While I am not sure if it's only related to my fairly old "shared" module that did nothing besides providing three compendiums, at least two reports are explicitely mentioning those compendiums. One person said that "the compediums vanished completely", so I had to see for myself.
When adding the module to the world, the compendia are showing up on the sidebar. Clicking on them does not open them up, it fails silently. In the console from nodejs, I see a thrown exception:
(node:26750) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'connected' of undefined at Socket._getCompendiumIndex (/media/sebastian/SSD/FVTT/0.5.2/bin/resources/app/dist/database/documents/compendium.js:1:8697) at Socket.emit (events.js:316:20) at /media/sebastian/SSD/FVTT/0.5.2/bin/resources/app/node_modules/socket.io/lib/socket.js:528:12 at processTicksAndRejections (internal/process/task_queues.js:79:11) (node:26750) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)