RPC types not working well inside a monorepo
I have a monorepo setup with
Also my routes are chained and splitted accordingly like this
now getting the type error here
packages/api for my hono api and app/www for the client code. I have set up rpc well but i am getting Type instantiation is excessively deep and possibly infinite.ts. I have tried the following- I have set
strictto true on both my api and client package - have set
compositetrue in my api package and set path reference in my client package.
Also my routes are chained and splitted accordingly like this
now getting the type error here