xmtp / xmtp-js

XMTP client SDKs for JavaScript applications.
https://xmtp.org/docs
210 stars 38 forks source link

Bug: Stream connection closed. Resubscribing TypeError: undefined is not a constructor (evaluating 'new TextDecoderStream') #554

Closed rygine closed 6 months ago

rygine commented 6 months ago

Describe the bug

this error happens when attempting to stream topics

Expected behavior

no error when streaming topics

Steps to reproduce the bug

this can occur when trying to stream conversations or messages using conversations.stream, conversations.streamAllMessages, or conversation.streamMessages.

rygine commented 6 months ago

this error occurs when using the bun runtime as it doesn't support TextDecoderStream as of v1.0.33.

at this time, the XMTP JS SDK is not compatible with bun.