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
{{ message }}
Repository navigation
Error TS2416 when trying to build my project #1976
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
Activity
add `@ts-ignore` on `cause`
KATT commentedon Jun 13, 2022
Add this for now:
add `@ts-ignore` on `cause` (#1977)
github-actions commentedon Oct 4, 2022
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.