DenoDDeno
Powered by
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)
 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 .
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

I want to install styledComponents in my deno project
mihainutuuMmihainutuu / help
3y ago
How to use Tensorflow in Deno?
OxooxoOOxooxo / help
7mo ago