Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native - ReferenceError: Can't find variable: TextEncoder #1155

Closed
filiphosko opened this issue Mar 15, 2023 · 3 comments · Fixed by #1157
Closed

React Native - ReferenceError: Can't find variable: TextEncoder #1155

filiphosko opened this issue Mar 15, 2023 · 3 comments · Fixed by #1157

Comments

@filiphosko
Copy link

I got this error with React Native v0.64.3 and the latest version of ably (v1.2.37 at the moment). I know that is an old version of React Native so this is not really a bug report (I don't know if it happens in the newer versions), I just wanted to let you know about it and what worked for me if anybody else stumbles upon this. In the end, setting up a polyfill like this helped https://stackoverflow.com/a/74531525/4256723.

@sync-by-unito
Copy link

sync-by-unito bot commented Mar 15, 2023

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3457

@owenpearson
Copy link
Member

Hey @filiphosko, thanks for raising this and for the suggested workaround!

I've opened a PR which should fix this so that you won't need a polyfill for using ably-js in an environment without TextEncoder, I'll let you know in this issue when it's available in a release 🙂

@filiphosko
Copy link
Author

@owenpearson Great, thank you 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants