Mismatched types

Getting the error (attached) when using trpc with separate client and server folders. Is this normal?
2 Replies
FluX
FluX2mo ago
Check that all your trpc client/server versions match. That should fix errors like these
Alex / KATT 🐱
GitHub
bug: Incompatible router types · Issue #6840 · trpc/trpc
Provide environment information API folder: vedantroy@Vedants-MacBook-Pro api % npx envinfo --system --binaries --browsers --npmPackages "typescript,next,react,@trpc/server,@trpc/client,@trpc/...
GitHub
bug: Incompatible Router types on client creation · Issue #6744 ·...
Provide environment information Backend System: OS: Linux 5.15 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat) CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13650HX Memory: 12.91 GB / 15.43 GB Containe...

Did you find this page helpful?