kota65535
kota65535
HHono
Created by kota65535 on 3/16/2025 in #help
I can't use tsconfig `paths` when using Hono RPC in monorepo
No description
19 replies
HHono
Created by kota65535 on 3/13/2025 in #help
How to share Hono RPC client type with frontend package?
We have a Hono backend application using Prisma ORM. One day our frontend application added the backend package as a dependency to use Hono RPC. However, this led to the following error since PrismaClient only works in a Node.js runtime:
"PrismaClient" is not exported by "../../packages/db/prisma-client/index-browser.js", imported by "../server/src/db.ts".
"PrismaClient" is not exported by "../../packages/db/prisma-client/index-browser.js", imported by "../server/src/db.ts".
This happens because the frontend app has a direct dependency on the backend app. Is there a best practice for sharing only the Hono RPC client types with another package?
9 replies