Getting type error for AppRouter
Hey. I've set up trpc in my monorepo as per this repo: https://github.com/t3-oss/create-t3-turbo (other auth provider). I am running in to these two type errors on the AppRouter type and haven't been able to solve them:
Type 'CreateRouterInner<RootConfig<{ ctx: { db: NeonHttpDatabase<typeof import("/Users/emilqvarfort/Desktop/Projects/moktiv/code/moktiv/packages/db/src/schema/index")> & { $client: NeonQueryFunction<boolean, boolean>; }; token: string; session: { ...; }; user: { ...; } | undefined; }; meta: object; errorShape: { ...; }; t...' does not satisfy the constraint 'Router<any, any>'
The types of '_def._config.transformer' are incompatible between these types.
Type 'typeof SuperJSON' is missing the following properties from type 'CombinedDataTransformer': input, output
Thanks in advance for your help!
GitHub
GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo usin...
Clean and simple starter repo using the T3 Stack along with Expo React Native - t3-oss/create-t3-turbo
![No description](https://cdn.answeroverflow.com/1315367968519098388/Screenshot_2024-12-08_at_18.20.24.png)
![No description](https://cdn.answeroverflow.com/1315367968976273468/Screenshot_2024-12-08_at_18.20.57.png)
![No description](https://cdn.answeroverflow.com/1315367969303560232/Screenshot_2024-12-08_at_18.21.45.png)
3 Replies