[Perf] Type instantiation is excessively deep and possibly infinite.
Author: yusukebeCreated Mar 22, 2024Updated Aug 27, 2026
Labelsenhancement
Discussed in https://github.com/orgs/honojs/discussions/2380
Originally posted by RomanNabukhotnyi March 19, 2024 Hey! I have a large application using hono and I'm running into a problem with types.
In the main branch I moved all my routes and added one additional test route and then the error appeared.
In the test branch I moved all the routes from the modules into one file and was able to add 35 additional routes without this error.
I also managed to compare the difference between Hono and Elysia With Elysia I was able to manage 1410 routes (470 routes / 3 instances) and with Hono - 120 (40 / 3). Repo I might miss or forget something here, in that case please let me know.
Source: honojs/hono