-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
Version
24.6.0 22.18.0
Platform
Windows
Subsystem
No response
What steps will reproduce the bug?
Run in interactive mode (REPL)
stream.pipeline(fs.createReadStream('c:\\testfile.txt'), process.stdout)
How often does it reproduce? Is there a required condition?
always
What is the expected behavior? Why is that the expected behavior?
Expected behavior is that content of the file will be printed to STDOUT.
What do you see instead?
TypeError [ERR_INVALID_ARG_TYPE]: The "streams[stream.length - 1]" property must be of type function. Received an instance of WriteStream
Additional information
process.stdout is Stream, based on documentation of stream.pipeline destination is allowed to be Stream.
Metadata
Metadata
Assignees
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.