-
I've been using Hono in Production for a while. My API Server is running on Deno using the Zod OpenAPI middleware to provide validation and generate documentation. I also have a Client which is a server side Deno App which calls my API Server. This has been working brilliantly, I have end-to-end type safety and automatically generated API Docs 🎉 I now need to create a second Client for my API, which is a React App, however I'm having trouble getting the Types to display in VSCode. I've seen in the RPC Docs that it says:
However since I'm using Deno there is no tsconfig.json for the Server. I've made a simplified example to show the structure of my App and Repo: https://github.com/p8952/deno-hono-react Can anyone point me to where I'm going wrong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @p8952 A quick response. There's a difference between |
Beta Was this translation helpful? Give feedback.
-
Hey @yusukebe, Thanks for the reply, when you say there's a difference, did you mean in terms of the version? I did notice after reading your comment that the version of However changing the React App version to |
Beta Was this translation helpful? Give feedback.
-
I was able to resolve this 🎉 Create
Update
Update
Update
Update
I've updated my demonstration repo with the fix in case it's useful for anyone else: https://github.com/p8952/deno-hono-react |
Beta Was this translation helpful? Give feedback.
I was able to resolve this 🎉
Create
api/src/deno.json
:Update
api/src/index.ts
:Update
api/src/routes/testRoute.ts
:Update
web/tsconfig.app.json
:Update
web/package.json
: