tRPCttRPC
Powered by
EilinisE
tRPC•11mo ago•
2 replies
Eilinis

AppRouter nested routers/procedures are any when imported in monorepo

(11.0.0-rc.828) Nested routers or procedures have 'any' types when imported in monorepo (vite, trpc). See utils router in the photo. I am wondering is it some tsconfig madness?

Typescript: 5.7.2 through all apps
image.png
image.png
Solution
fixed, needed to add
composite: true
composite: true
in the api package as it was both used in web app for types and in api app.
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

procedures on routers are typed any
allenwhunAallenwhun / ❓-help
10mo ago
AppRouter type is imported as any
BuckyxBBuckyx / ❓-help
2y ago
merging other routers to appRouter
NazCodelandNNazCodeland / ❓-help
3y ago