kota65535
kota65535
HHono
Created by kota65535 on 3/16/2025 in #help
I can't use tsconfig `paths` when using Hono RPC in monorepo
Thank you. It was frustrating that I couldn't figure out why the paths were not working, but I guess I shouldn't worry about it too much.
19 replies
HHono
Created by kota65535 on 3/16/2025 in #help
I can't use tsconfig `paths` when using Hono RPC in monorepo
Do you have any insight why it only works when the type file is shared? Types are too complex and TypeScript give up type inference?
19 replies
HHono
Created by kota65535 on 3/16/2025 in #help
I can't use tsconfig `paths` when using Hono RPC in monorepo
Thank you @ambergristle. Compiling and generating the type file is a bit tedious, but looks better than relying on the entire server code base.
your actual client is an SPA or something, not a hono app serving html, right?
Yes, the actual frontend is assumed to be SPA.
19 replies
HHono
Created by kota65535 on 3/16/2025 in #help
I can't use tsconfig `paths` when using Hono RPC in monorepo
Hi @ambergristle , this is bun workspace. https://bun.sh/docs/install/workspaces
19 replies
HHono
Created by kota65535 on 3/13/2025 in #help
How to share Hono RPC client type with frontend package?
My bad, it is because I mistakenly have my frontend package import directly from the db package using Prisma. Thank you!
9 replies