shu
shu2y 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
shuOP2y 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
shuOP2y ago
shu
shuOP2y ago
I'm a bit of a noobie so yeah 😅 any help would be greatly appreciated

Did you find this page helpful?