Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@hono/typia-validator] How to use the typia validator elegantly in Hono development mode? #777

Closed
shlroland opened this issue Oct 12, 2024 · 0 comments

Comments

@shlroland
Copy link

I really like the typia library. I am also very happy that hono has support for it. However, I experienced a bit of confusion during the development of my hono application. I use vscode to write code and bun to start my hono application. Once I added typia as my data validation tool according to the official website’s guidelines, two problems arose.

  1. Typia employs AOT compilation to precompile typescript, causing the ts files that Bun executes to differ from my original source code. As a result, when I try to debug Hono by setting breakpoints in vscode, I'm unable to investigate the issues as intended, because vscode does not show the code that has been compiled by Typia. In contrast, Bun's built-in web debugger does allow me to view the compiled TS code. I prefer to debug server-side code in VSCode and am curious if there is a resolution to this issue.

  2. After using typia, the watch and hot features in bun have stopped working.

related to samchon/typia#1305

@shlroland shlroland changed the title [@hono/typia-validator] How to Use the Typia Validator Elegantly in Hono development mode? [@hono/typia-validator] How to use the typia validator elegantly in Hono development mode? Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant