t
tRPC
`useTRPC` has the any type meanwhile `AppRouter` doesn't - tRPC
V
tRPC
•
11mo ago
•
3 replies
Vlad
`useTRPC` has the any type meanwhile `AppRouter` doesn't
I
'm using monorepo
(turborepo
) and importing
AppRouter
AppRouter
from the backend for types
.
AppRouter
AppRouter
appears to have types
, but
useTRPC
useTRPC
doesn
't
. How can I fix it
?
Solution
Figured it out
. Just add these lines to the tsconfig
.json file
:
"references": [{
"path": "../server"
}]
"references": [{
"path": "../server"
}]
Jump to solution
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,951
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
AppRouter type any?
R
RaineP / ❓-help
4y ago
AppRouter type is imported as any
B
Buckyx / ❓-help
2y ago
AppRouter Type Declaration Method
T
ThreeCrown / ❓-help
10mo ago