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 recently installed resend to my node server but am no longer able to deploy due to some errors related to resend. Here are the errors. Any suggestions? Thank!
Aug 7 05:58:38 AM node_modules/resend/build/src/emails/interfaces/create-email-options.interface.d.ts(2,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.
Aug 7 05:58:38 AM Try `npm i --save-dev @types/react`if it exists or add a new declaration (.d.ts) file containing `declare module 'react';`
Aug 7 05:58:38 AM node_modules/type-fest/source/jsonify.d.ts(22,19): error TS2589: Type instantiation is excessively deep and possibly infinite.
Edit:
node -v: 16.14.0
server hosted on Render
I tried upgrading node to lts and installing react types but still see this error
node_modules/type-fest/source/jsonify.d.ts(22,19): error TS2589: Type instantiation is excessively deep and possibly infinite
Resolved by upgrading Typescript to lts version. However, I would suggest the consideration of the possible replacement of type-fest to prevent this for future users.
Activity
raulsanchez1024 commentedon Aug 7, 2023
Resolved by upgrading Typescript to lts version. However, I would suggest the consideration of the possible replacement of
type-festto prevent this for future users.