matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.49k stars 577 forks source link

Fix build for example script #4286

Closed richvdh closed 3 days ago

richvdh commented 5 days ago

This example seems to have been broken by the switch to Typescript. We can't just symlink in ../.. because that gives us the typescript version of the source, which, obviously, doesn't work in node.

Instead, make sure we use a prebuilt version of the js-sdk.

It's actually even more broken as of js-sdk 33.0.0, thanks to the switch to ES modules (#4187), but we'll get to that later.