JulesJ
Convex Community9mo ago
6 replies
Jules

Error: `r.stream(...).pipe` is not a function when calling `storage.store(...)`

I'm trying to set up Convex Storage, but I'm running into the following error:
TypeError: r.stream(...).pipe is not a function


Code:
const { buffer, mimeType } = extractFromDataUrl(dataUrl);
const dataBlob = new Blob([buffer], { type: mimeType });
const storageId = await ctx.storage.store(dataBlob);

The error is triggered on the line that calls
await ctx.storage.store(dataBlob)


Has anyone seen this before, or know what could be causing this?
Was this page helpful?