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

^4.4.0 => TypeError: lazyWebStreams(...).newReadableStreamFromStreamReadable is not a function #521

Open
gowy222 opened this issue Jun 1, 2023 · 1 comment

Comments

@gowy222
Copy link

gowy222 commented Jun 1, 2023

node = v16.16.0
"readable-stream": "^4.4.0",

Readable.toWeb =>

return lazyWebStreams().newReadableStreamFromStreamReadable(streamReadable, options)
^

TypeError: lazyWebStreams(...).newReadableStreamFromStreamReadable is not a function

@arschmitz
Copy link

the code for this is just clearly wrong / missing

// Lazy to avoid circular references
function lazyWebStreams() {
if (webStreamsAdapters === undefined) webStreamsAdapters = {}
return webStreamsAdapters
}
Readable.fromWeb = function (readableStream, options) {
return lazyWebStreams().newStreamReadableFromReadableStream(readableStream, options)
}

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

No branches or pull requests

2 participants