EilinisE
tRPC10mo 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 in the api package as it was both used in web app for types and in api app.
Was this page helpful?