hono rpc problem
and this is the client code
for the context code
and how i've exported the type of App
5 Replies
Why have you got the seperate "routes" object here? Rather than just:
basePath
returns a new router rather than modifying the existing onealso the same problem, i've ignored the errors and continued working.
it's weird
renaming
Context
like that seems dangerous
it looks like maybe some of your apps have incompatible Env
types though. what line is showing the TS error?
from here, first line, ig from the hono client
i'd start by renaming your
Context
type something like EnvWithSession