(TypeScript developers might want to look away now…)
Hmm, no, it’s not that. Just created a basic spike to test just that and ESM is perfectly happy if you return a promise from a constructor that eventually resolves to a different datatype. So it must be something else that’s triggering it. With the stack traces were more helpful.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!