tRPCttRPC
Powered by
EmilE
tRPC•15mo ago•
3 replies
Emil

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!
Screenshot_2024-12-08_at_18.20.24.png
Screenshot_2024-12-08_at_18.20.57.png
Screenshot_2024-12-08_at_18.21.45.png
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
GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo usin...
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

AppRouter type any?
RainePRRaineP / ❓-help
4y ago
AppRouter Type Declaration Method
ThreeCrownTThreeCrown / ❓-help
8mo ago
TS error regarding inferred type of 'appRouter'
James HopgoodJJames Hopgood / ❓-help
5mo ago