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 am develop an API in express with Typescript, and I am using Resend to send emails. I followed the instructions of the official doc page: https://resend.com/docs/send-with-express.
In local works perfectly. However, when I try to deploy in prod creating the build, I get this error:
node_modules/resend/dist/index.d.ts(1,24): error TS7016: Could not find a declaration file for module 'react'. '/opt/render/project/src/node_modules/react/index.js' implicitly has an 'any' type.
I cannot find any solution. Why Resend need React to work in express?
The text was updated successfully, but these errors were encountered:
AlejandroMora15
changed the title
Resend in express install React??
Resend need React to work in Express??
May 9, 2024
AlejandroMora15
changed the title
Resend need React to work in Express??
Why Resend need React to work in Express??
May 9, 2024
@AlejandroMora15 you don't need react to send an email with resend on an express server.
Did you use react components in the email body?
I did not need to install react for using the example const { data, error } = await resend.emails.send({ from: "Acme <onboarding@resend.dev>", to: ["delivered@resend.dev"], subject: "hello world", html: "<strong>it works!</strong>", });
I am develop an API in express with Typescript, and I am using Resend to send emails. I followed the instructions of the official doc page: https://resend.com/docs/send-with-express.
In local works perfectly. However, when I try to deploy in prod creating the build, I get this error:
node_modules/resend/dist/index.d.ts(1,24): error TS7016: Could not find a declaration file for module 'react'. '/opt/render/project/src/node_modules/react/index.js' implicitly has an 'any' type.
I cannot find any solution. Why Resend need React to work in express?
The text was updated successfully, but these errors were encountered: