Tony
Tony
Explore posts from servers
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
which i am already, are we on the same page though
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
yeah the client is meant for the nextjs app
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
so there's no workaround for this?
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
I tried this, but it could still be slow on the type inference and auto complete
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
yeah this is what i havent done yet, still confuses me to get the compilation correct
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
there was a trpc api on the apps/www package but i slowly migrated it to hono. so u can just ignore the trpc stuff
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
I guess thats the culprit, have tried running this through claude but no luck
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
it gets the types yes, but the automplete part is the one which is super slow
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
basically the main issue rn is the rpc type inference and autocomplete is not fast in the client, basically in this file here https://github.com/BrightonMboya/jani-payments/blob/a31f1b1c68ef3fb37512f838ab65673c40af055e/apps/www/src/server/hono.ts#L6
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
damn it, somehow i keep on getting confused on this. do u mind checking it out on the repo ? or maybe sending u a minimum repo will work for you?
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
thanks a ton
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
alright cool !!
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
I get this part of chaining the routes. I did that and the initial error of type instansiation is deep and possibly infinte the new issue comes with the rpc inside the client is very slow on type inference and auto complete. it gets the type yes but its slow I am trying the fix of using generated types suggested by ambergristle maybe i am missing sth very obvious which i cant see it yet
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
yes i have this in my tsconfig, what i am not sure is a way of generating the types,
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
or maybe i am confused with the way i have set things up already
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
how do you do that?
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
so chaining it on 2 places?
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
I have tried on my own but havent managed to get it working. the ts inference and autocomplete are slow af. when u get a min u can check it out maybe https://github.com/BrightonMboya/jani-payments
115 replies
HHono
Created by Tony on 3/4/2025 in #help
RPC types not working well inside a monorepo
shoot, let me give it a try and update u
115 replies