Open jclem opened 8 months ago
This is also happening with file.stream()
. https://bun.sh/guides/read-file/stream - I'm guessing maybe they both are using the same types under the hood.
Another issue with Bun.stdin.stream()
is the stream does not read stdin to completion, cf. Deno and Bun.
What version of Bun is running?
1.0.26+c75e768a6
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
Write a program with the stdin example from the Bun documentation:
What is the expected behavior?
No type errors should be reported.
What do you see instead?
A type error:
Additional information
Looks like ReadableStream isn't getting the async iterator from stream/web's definition (stream/web has it, lib/dom does not).