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

Expo Android : Property 'TransformStream' doesn't exist #4083

Closed
fab-uleuh opened this issue Dec 13, 2024 · 7 comments
Closed

Expo Android : Property 'TransformStream' doesn't exist #4083

fab-uleuh opened this issue Dec 13, 2024 · 7 comments
Labels
bug Something isn't working docs Improvements or additions to documentation

Comments

@fab-uleuh
Copy link

Description

I follow the documentation : https://sdk.vercel.ai/docs/getting-started/expo

It works on the web but it don't work on android :

ERROR ReferenceError: Property 'TransformStream' doesn't exist, js engine: hermes [Component Stack]

Code example

No response

AI provider

@ai-sdk/openai: 1.0.8

Additional context

No response

@fab-uleuh fab-uleuh added the bug Something isn't working label Dec 13, 2024
@JimmyLv
Copy link

JimmyLv commented Dec 20, 2024

same here

@lgrammel
Copy link
Collaborator

TransformStream is a JS standard feature. This seems like a gap in to Expo to me. Can you file a bug w/ Expo? Which Expo version are you using?

@lgrammel
Copy link
Collaborator

cc @nicoalbanese

@JacksonMalloy
Copy link

Also running into this issue. Was trying to test the useObject hook and was seeing this on my iOS simulator.

@psx2
Copy link

psx2 commented Jan 1, 2025

same on ios

edit: updating to expo 52 fixed this.

@lgrammel lgrammel added the docs Improvements or additions to documentation label Jan 2, 2025
@lgrammel
Copy link
Collaborator

It means that TransformStream is not available in the platform that you are using. It has been web standard for a while: https://developer.mozilla.org/en-US/docs/Web/API/TransformStream

Can you try polyfilling TransformStream?

@lgrammel
Copy link
Collaborator

lgrammel commented Feb 5, 2025

We have a new guide for polyfiling, can you give it a try? https://sdk.vercel.ai/docs/getting-started/expo#polyfills

@lgrammel lgrammel closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants