JawadJ
Denoβ€’2y agoβ€’
2 replies
Jawad

How to use new FormData constructor in Deno server, I want to use it for my supabase edge function.

I've created an edge function in supabase that requires formdata,I know it's a browser side thing and also supports in latest node version. But when I use this in deno , such as
 const formData = require(form-data)

it gives an error after deployment , it says require is not defined.
But if I use
const formData = new FormData() 


it also throws an error .
Was this page helpful?