banzeB
tRPC3y ago
4 replies
banze

ReferenceError: FormData is not defined

I am using the experimental form data as shown in the examples and it works correctly on my machine, but when deploying to DigitalOcean App Platform, I get the error you see below.

ReferenceError: FormData is not defined in /node_modules/@trpc/server/dist/adapters/node-http/content-type/form-data/index.mjs for:
    const formData = new FormData();
    const parts = streamMultipart(Readable.toWeb(request), boundary);


Can anyone save me?
Was this page helpful?