shu
shu13mo ago

tRPC type error on turborepo

Types of property 'query' are incompatible.
Type 'inferHandlerFn<{}>' is not assignable to type 'inferHandlerFn<any>'.
Types of parameters 'path' and 'path' are incompatible.
Type 'TPath' is not assignable to type 'never'.
Type 'string' is not assignable to type 'never'.
Types of property 'query' are incompatible.
Type 'inferHandlerFn<{}>' is not assignable to type 'inferHandlerFn<any>'.
Types of parameters 'path' and 'path' are incompatible.
Type 'TPath' is not assignable to type 'never'.
Type 'string' is not assignable to type 'never'.
3 Replies
shu
shu13mo ago
All versions are the same (10.20.0) and im using pnpm File structure is apps/(expo and next), packages/(api) types work on expo but not on nextjs
shu
shu13mo ago
shu
shu13mo ago
I'm a bit of a noobie so yeah 😅 any help would be greatly appreciated