Eilinis
Eilinis2w ago

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
No description
No description
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.
Jump to solution
1 Reply
Solution
Eilinis
Eilinis2w ago
fixed, needed to add composite: true in the api package as it was both used in web app for types and in api app.

Did you find this page helpful?