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

TransformStream is not defined #4314

Closed
ajaythakkar opened this issue Jan 7, 2025 · 3 comments
Closed

TransformStream is not defined #4314

ajaythakkar opened this issue Jan 7, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@ajaythakkar
Copy link

Description

I have followed all steps from here for nuxt js : https://sdk.vercel.ai/docs/getting-started/nuxt

It is working fine on local but after deployed on server project is working fine but /api/chat api not working and getting error :

{ "url": "/api/chat", "statusCode": 500, "statusMessage": "", "message": "TransformStream is not defined", "stack": "" }

Code example

No response

AI provider

"@ai-sdk/openai": "^1.0.11"

Additional context

No response

@ajaythakkar ajaythakkar added the bug Something isn't working label Jan 7, 2025
@lgrammel
Copy link
Collaborator

lgrammel commented Jan 8, 2025

Which environment are you deploying to / running on?

@ajaythakkar
Copy link
Author

@lgrammel Thank you for your replay

Ubuntu 22.04.3 LTS
Node v18.19.1
Nuxt: 3.3.1
PHP 8.1.2-1ubuntu2.20 with Apache

@ajaythakkar
Copy link
Author

Setting node version 18 work for me, Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants