tRPCttRPC
Powered by
Rob SchilderR
tRPC•3mo ago•
1 reply
Rob Schilder

trpc with deno + hono + supabase edge functions

@trpc/server
Hey guys,

I wanted to add tRPC alongside our existing Hono setup
using the official
@hono/trpc-server
@hono/trpc-server
adapter.

tRPC's type-safe client requires importing
AppRouter
AppRouter
from the server:

import type { AppRouter } from "../server/trpc"
const trpc = createTRPCReact<AppRouter>()
import type { AppRouter } from "../server/trpc"
const trpc = createTRPCReact<AppRouter>()


Our server uses Deno-style imports (
#report/repository/compose.ts
#report/repository/compose.ts
) that Node.js TypeScript can't resolve. When the frontend tries to infer types from
AppRouter
AppRouter
, compilation fails.

Can any of you confirm whether it's possible to use Deno + tRPC in this way and it's a setup fault on our side? Or is this not possible?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Does tRPC work with Clerk and Vercel Edge functions?
XenoXXeno / ❓-help
3y ago
Supabase with trpc
IamIconLivingIIamIconLiving / ❓-help
3y ago
Help with tRPC + Hono + Next.js
Eddy HernándezEEddy Hernández / ❓-help
2y ago
Setting up tRPC for next.js with edge AND serverless functions
notoriousfeliNnotoriousfeli / ❓-help
2y ago