Skip to content

Type errors when deploying (build fails) #151

Closed

Description

@raulsanchez1024

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

Activity

  1. raulsanchez1024 commented on Aug 7, 2023

    @raulsanchez1024
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions