You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a headers is not defined error each time I try to use resend in my nodejs app
I have been using this as a workaround for a while, can a more permanent solution be done please?
import fetch, { Headers, Response, Request } from "node-fetch";
if (!global.fetch) {
global.fetch = fetch as unknown as typeof global.fetch;
global.Headers = Headers as unknown as typeof global.Headers;
global.Response = Response as unknown as typeof global.Response;
global.Request = Request as unknown as typeof global.Request;
}
The text was updated successfully, but these errors were encountered:
I get a headers is not defined error each time I try to use resend in my nodejs app
I have been using this as a workaround for a while, can a more permanent solution be done please?
import fetch, { Headers, Response, Request } from "node-fetch";
if (!global.fetch) {
global.fetch = fetch as unknown as typeof global.fetch;
global.Headers = Headers as unknown as typeof global.Headers;
global.Response = Response as unknown as typeof global.Response;
global.Request = Request as unknown as typeof global.Request;
}
The text was updated successfully, but these errors were encountered: