mirror of
https://github.com/hanzoai/chat.git
synced 2026-09-30 20:51:17 +00:00
Third boot failure of the same shape, one route line further on:
TypeError: canAccessSkillResource is not a function
at Object.<anonymous> (/app/api/server/routes/skills.js:292:3)
`accessResources/index.js` requires six of the seven files beside it and
never named the seventh, so `routes/skills.js` mounted `undefined` as
express middleware. Exported.
Twice now the fix has been "add the missing name" and twice the next name
was missing too, so this commit stops guessing: barrels.spec.js reads what
EVERY route destructures — from `@hanzochat/api` and from
`~/server/middleware` — and proves the barrel publishes it. Statically:
requiring these for real drags in mongoose and a built dist/, and neither is
what breaks. It fails on `canAccessSkillResource` without the line above,
and it replaces the hand-listed packages/api spec, which only knew about the
one route someone had already debugged.
Co-authored-by: Hanzo Dev <[email protected]>