When trying to use window.FormData I get the following error:
The name 'FormData' does not exist in the current scope
The same happens to FileReader
add dom to the lib array in the tsconfig.json of your project.
{
"compilerOptions": {
...
"lib": ["es2018", "dom"], // add `dom` to the array
...
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With