You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program complete normally without exception being thrown.
What do you see instead?
➜ bun run index.ts
400 | function E(code, message, Base) {
401 | if (!Base)
402 | Base = Error;
403 |
404 | class NodeError extends Base {
405 | constructor(...args) {
^
TypeError: The "streamReadable" argument must be an stream.Readable. Received an instance of Pipeline
code: "ERR_INVALID_ARG_TYPE"
at new NodeError (node:stream:405:39)
at newReadableStreamFromStreamReadable (node:stream:2407:83)
at new Response (node-fetch:48:27)
at new NFCResponse (/Users/glen/scm/tmp/bun-node-fetch/node_modules/node-fetch-cache/dist/classes/response.js:36:9)
at /Users/glen/scm/tmp/bun-node-fetch/node_modules/node-fetch-cache/dist/index.js:24:16
Does not crash when compiled to js and run then
bun build index.ts --target=node --outfile build/index.js
➜ bun build/index.js
NFCResponse {
[Symbol(Body internals)]: {
...
What version of Bun is running?
1.0.25
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
Program complete normally without exception being thrown.
What do you see instead?
Does not crash when compiled to js and run then
Additional information
Created reproducer as gist:
The text was updated successfully, but these errors were encountered: