Franquito
RPC AppType breaks if route is defined on a separate file
No idea. It is working now for some reason. I did not change anything in the tsconfig files. I had restarted my editor when i was having the problem but it did not fix it. I restarted my computer and now it works. Typescript things I guess lmao
7 replies
RPC AppType breaks if route is defined on a separate file
Ok, I was able to debug the issue. Its completely weird
If I have the code of the first image in app.ts, the rpc client works just fine (second image)
But if I define the test route on a separated file on my backed, imported as shown, it stops working. The SAME CODE, just exported on another file
What is happening?
7 replies
RPC AppType breaks if route is defined on a separate file
I think is related to this issue but im not 100% sure
https://github.com/honojs/hono/issues/1746
7 replies