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 #257

Closed
basedwon opened this issue May 11, 2024 · 3 comments · Fixed by #260
Closed

TransformStream is not defined #257

basedwon opened this issue May 11, 2024 · 3 comments · Fixed by #260

Comments

@basedwon
Copy link

I just installed the package and tried to require it and got this error. I'm on Node 16.20.0. I saw in the readme that these were "bundled", I'm not exactly sure what that means or if I'm supposed to do something more; that's not clear from the docs.

@mattt
Copy link
Member

mattt commented May 11, 2024

Hi @basedwon. This library requires Node.js >= 18. Please update to a newer version of Node and let us know if you still see this error.

@basedwon
Copy link
Author

Hi @mattt, I actually can't upgrade currently unfortunately. So, I guess I can't use your API, unless I can just do axios requests directly. Probably would be good to mention that requirement in the docs.

@aron
Copy link
Contributor

aron commented May 13, 2024

Depending on how your app is configured, you could look into using something like https://www.npmjs.com/package/web-streams-polyfill, this would provide the TransformStream API in your application. Note that you may still then run into other issues with Node version compatibility.

Probably would be good to mention that requirement in the docs.

We'll get that added to the README.

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

Successfully merging a pull request may close this issue.

3 participants