Using Svelte editor components from Anki - what causes "TypeError: ctx[3] is not a constructor"?

I believe the error you were getting should be resolved in 2.1.47rc2, and the exported components should work correctly now, though not everything has been exported yet. To ensure the components work correctly, you’ll need to make sure you mark Svelte as external when bundling: anki_new_format_pack/build.js at no-parents · ankitects/anki_new_format_pack · GitHub

The comments about this being alpha still apply, as things may still need to be moved around/refactored as we get more experience with Svelte. The components global will likely be renamed to something like anki.components at one point for example.