Description
What version of Remix are you using?
2 and 1.19
Are all your remix dependencies & dev-dependencies using the same version?
- Yes
Steps to Reproduce
- Start a new project using Remix
- Add
@vercel/blob
package - Call the
list
function of@vercel/blob
from a Remix loader - 💥 Error happen:
throw new TypeError(
${context} is not a ReadableStream.
);
^
TypeError: First parameter has member 'readable' that is not a ReadableStream.
This CodeSandbox shows the error, does anyone know a workaround?
https://codesandbox.io/p/sandbox/sparkling-flower-hmrkj4
Expected Behavior
Should not throw an error and return the blobs
Actual Behavior
It throws the following error:
info building...
info built (537ms)
[remix-serve] http://localhost:3000 (http://192.168.1.102:3000)
/Users/joris/w/blob/node_modules/web-streams-polyfill/src/lib/validators/readable-stream.ts:5
throw new TypeError(${context} is not a ReadableStream.
);
^
TypeError: First parameter has member 'readable' that is not a ReadableStream.
at assertReadableStream (/Users/joris/w/blob/node_modules/web-streams-polyfill/src/lib/validators/readable-stream.ts:5:11)
at convertReadableWritablePair (/Users/joris/w/blob/node_modules/web-streams-polyfill/src/lib/validators/readable-writable-pair.ts:15:3)
at ReadableStream.pipeThrough (/Users/joris/w/blob/node_modules/web-streams-polyfill/src/lib/readable-stream.ts:211:23)
at fetchFinale (/Users/joris/w/blob/node_modules/undici/lib/fetch/index.js:973:52)
at mainFetch (/Users/joris/w/blob/node_modules/undici/lib/fetch/index.js:773:5)
at processTicksAndRejections (node:internal/process/task_queues:95:5)