scrubbuddyS
tRPC2y ago
7 replies
scrubbuddy

Types not being shared with the frontend

Hello,

I am currently trying to follow a guide to setup a new project and encountering this error in the client:
Property 'greet' does not exist on type 'TRPCClient<CreateRouterInner<RootConfig<{ ctx: { event: APIGatewayProxyEvent; apiVersion: string; user: string | undefined; }; meta: object; errorShape: DefaultErrorShape; transformer: DefaultDataTransformer; }>, { ...; }>>'.ts(2339)


both projects have ts strict mode enabled. the same versions of trpc, and i installed the server package on the client
Solution
switching to createTRPCProxyClient solved this problem
Was this page helpful?