The inferred type of 'client' cannot be named without a reference to
Hono bros I need your help with a problem I can't figure out.
My setup is a monorepo with this stucture. I have done this way to avoid leakage of server code into my frontend code.
root
/apps
/backend
/server
/packages
/hc-client (to avoid server leakage code)
/drizzle
server/src/app.tsx
hc-client/src/index.ts
And here I have an error on the client:
So far I have not found a solution to this 😦
2 Replies
please use syntax highlighting for code snippets
also,
drizzle
should probably be in your backend
dir, and hc-client
in your frontend
dir. pulling them out into separate packages creates more problems than it solves
the only thing that really needs to be shared between your two packages is the generated (not inferred) AppType
Alright. I will try it this way