You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nesting chanfana proxies in a route function should produce the same results as when done in hono - that is, it should group the routes together as sub-routes
Additional Info
Chanfana version: 2.0.4
Relevant stack trace
TypeError: Cannot read properties of undefined (reading 'basePath')
at route (/Users/db/dev/cloudflare/simple/node_modules/hono/dist/cjs/hono-base.js:111:25)
at Proxy.<anonymous> (/Users/db/dev/cloudflare/simple/node_modules/chanfana/dist/index.js:763:50)
the proxy referred to at the trace is located here, and the route call in hono is located here.
there's also currently no documentation in chanfana on how to group hono routes together, only ittyrouter.
The text was updated successfully, but these errors were encountered:
TheDanBlanco
changed the title
grouping hono routes returns undefined error
nesting hono routes returns undefined error
Sep 28, 2024
Hey @TheDanBlanco sorry about that, this issue has been known internally since the release of 2.0.0
I just didn't have time yet to go around fixing that
But this is a top priority for the next version, hopefully coming up soon, i will keep posting updates here
Issue
using a
route
call on afromHono
chanfana proxy object returnsTypeError: Cannot read properties of undefined (reading 'basePath')
Minimal reproduction code
Expected behavior
nesting chanfana proxies in a
route
function should produce the same results as when done in hono - that is, it should group the routes together as sub-routesAdditional Info
Chanfana version: 2.0.4
Relevant stack trace
the proxy referred to at the trace is located here, and the route call in hono is located here.
there's also currently no documentation in chanfana on how to group hono routes together, only ittyrouter.
The text was updated successfully, but these errors were encountered: