Vlad
Vlad3d ago

`useTRPC` has the any type meanwhile `AppRouter` doesn't

I'm using monorepo (turborepo) and importing AppRouter from the backend for types. AppRouter appears to have types, but useTRPC doesn't. How can I fix it?
No description
No description
No description
Solution:
Figured it out. Just add these lines to the tsconfig.json file: ``` "references": [{ "path": "../server" }]...
Jump to solution
1 Reply
Solution
Vlad
Vlad3d ago
Figured it out. Just add these lines to the tsconfig.json file:
"references": [{
"path": "../server"
}]
"references": [{
"path": "../server"
}]

Did you find this page helpful?