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
Can i move the hono handler to different file like this?
// in main.tsimport{Hono}from'hono';importhandlerFunctionfrom'./handler';constapp=newHono();app.get("/",handlerFunction);
// in handler.tsimport{Context}from'hono/context';// this will not workingconsthandlerFunction=(c: Context)=>c.text("something");exportdefaulthandlerFunction;
because i got this error: Trace: Error: Context is not finalized. You may forget returning Response object or await next()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can i move the hono handler to different file like this?
because i got this error:
Trace: Error: Context is not finalized. You may forget returning Response object or
await next()
Beta Was this translation helpful? Give feedback.
All reactions