kota65535
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:
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