Skip to content

Error TS2416 when trying to build my project #1976

Closed

Description

@AbhinavPalacharla

Hello all,

I am trying to deploy my app to https://railway.app

I am trying to deploy an express app using trpc, but I am running into an issue when trying to build:

error TS2416: Property 'cause' in type 'TRPCError' is not assignable to the same property in base type 'Error'.
  Type 'unknown' is not assignable to type 'Error | undefined'.

7     readonly cause?: unknown;
               ~~~~~


Found 1 error in node_modules/@trpc/server/dist/declarations/src/TRPCError.d.ts:7

I'm using @trpc/server": "^9.25.1

Not sure what to do with this Typescript error

Activity

  1. added a commit that references this issue on Jun 13, 2022
    fcd5511
  2. KATT commented on Jun 13, 2022

    @KATT
    Member

    Add this for now:

    "skipLibCheck": true,
  3. added a commit that references this issue on Jun 13, 2022
    54b20ef
  4. github-actions commented on Oct 4, 2022

    @github-actions
    Contributor

    This issue has been locked because it had no new activity for 14 days. If you are running into a similar issue, please create a new issue. Thank you.

  5. locked as resolved and limited conversation to collaborators on Oct 4, 2022
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