Jawad
Jawad
DDeno
Created by Jawad on 5/17/2024 in #help
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)
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()
const formData = new FormData()
it also throws an error .
3 replies