Effect CommunityEC
Effect Community15mo ago
9 replies
Riordan

TypeScript Error: RpcRouter TypeId Constraint Issue After Dependency Update

I've just updated all my effect deps to latest but im running into this roadblock. Anyone else seen this before?
HttpRpcClient.ts:35:65 - error TS2344: Type 'RpcRouter<MySpecificReqUnion, MyContext>' does not satisfy the constraint 'RpcRouter<any, any>'.
  Property '[TypeId]' is missing in type 'RpcRouter<MySpecificReqUnion, MyContext>' but required in type 'RpcRouter<any, any>'.

35 export const httpRpcClient = HttpRpcResolverNoStream.makeClient<AuthRouter>(
                                                                   ~~~~~~~~~~

  ../../node_modules/@effect/rpc-http/node_modules/@effect/rpc/dist/dts/RpcRouter.d.ts:32:14
    32     readonly [TypeId]: TypeId;
                    ~~~~~~~~
    '[TypeId]' is declared here.
Was this page helpful?