# form-data runtime error under NestJS: use namespace import
[sina-salahshour (reporter)]: Change the import to a namespace import: import * as formData from 'form-data' instead of the default import. Default-importing form-data breaks the FormData constructor mailgun.js expects, which throws at runtime under NestJS. Confirmed fixed by the reporter.
## Context from the issue
mailgun/mailgun-js#339: Issue mailgun/mailgun-js#339 (closed, 7 comments): Using mailgun.js with NestJS, no type errors, but at runtime `new Mailgun(formData)` throws a form-data error. Code: `import formData from 'form-data'; import Mailgun from 'mailgun.js'; ... this.mailgun = new Mailgun(formData);`