TheGoatedDev
TheGoatedDevā€¢14mo ago

TRPC Next/Server Types Broken >10.5.0

Hi all, recently I upgraded from 10.5.0 to latest 10.21.2, discovering that I now have type-check errors across all apps and packages that import my TRPC package. This is preventing the ability to build, with type-checking which is not overly great. I tryed over versions like 10.10.0 and 10.6.0, etc... All Versions After 10.5.0 cause @trpc/next type errors. And some where between 10.6.0 and 10.21.2 cause the @trpc/server issues. The File Attached is the log of the errors that occur with the commands I used. I am using Node 18, Yarn and Turborepo. Hope someone has had a similar issue. Hopefully there is fix that I could use.
11 Replies
Alex / KATT šŸ±
Alex / KATT šŸ±ā€¢14mo ago
what's your typescript version? that looks like new syntax so i think you need to bump ts
TheGoatedDev
TheGoatedDevā€¢14mo ago
@alex / KATT It is on 4.5.3
Alex / KATT šŸ±
Alex / KATT šŸ±ā€¢14mo ago
looks like we require typescript 4.7 right now oops because we use instantiation expressions
TheGoatedDev
TheGoatedDevā€¢14mo ago
It is possible to have a disclaimer on the docs???
Alex / KATT šŸ±
Alex / KATT šŸ±ā€¢14mo ago
but i think that's the only place, we could likely refactor it
Alex / KATT šŸ±
Alex / KATT šŸ±ā€¢14mo ago
it says here
TheGoatedDev
TheGoatedDevā€¢14mo ago
Ah
TheGoatedDev
TheGoatedDevā€¢14mo ago
Well thanks again, I didn't release their was a upgrade required.... Been attempting everything today for this issue, it has taken me 6 hours.
Alex / KATT šŸ±
Alex / KATT šŸ±ā€¢14mo ago
uh shit sorry to hear
TheGoatedDev
TheGoatedDevā€¢14mo ago
It is all good, glad to know it was just the basics I was over thinking the issue.