Holden92H
tRPC2mo ago
1 reply
Holden92

Expo and nextjs TRPC issue

Hello,

I have a Nextjs project and an Expo mobile application that I am trying to use trpc between my native app and nextjs backend. When I try to fetch data from my mobile app, i get the following error:

[TRPCClientError: right operand of 'in' is not an object]

I am certain that the versions match between the client and server. I am using superjson as my transformer. I have strict:true in my tsconfig.

It works fine in my nextjs backend and frontend, but not between nextjs and react-native.

Trpc version: 11.7.2

What more information might you need?
Was this page helpful?