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
TypeError: Cannot read properties of undefined (reading 'raw')
at Module.getSignedCookie (/home/astra/Documents/database/honox-client/node_modules/hono/dist/helper/cookie/index.js:28:24)
Case 3 - setCookie
setCookie(c,'testCookie','1')
This throws:
Uncaught (in promise) TypeError: c.header is not a function
setCookie index.js:59
Which points to c.header("set-cookie", cookie, { append: true });
Case 4 - setSignedCookie
seSignedCookie(c,KEY,'testCookie','1')
bun throws and exists with:
TypeError: c.header is not a function
at Module.setSignedCookie (/home/astra/Documents/database/honox-client/node_modules/hono/dist/helper/cookie/index.js:82:5)
P.S: These snippets work perfectly in a Hono-only environment
The text was updated successfully, but these errors were encountered:
What version of HonoX are you using?
0.1.23
What steps can reproduce the bug?
Case 1 -
getCookie
This error is thrown in the browser console:
which points to this line
const cookie = c.req.raw.headers.get("Cookie");
Case 2 -
getSignedCookie
In development, bun throws and exits with:
Case 3 -
setCookie
This throws:
Which points to
c.header("set-cookie", cookie, { append: true });
Case 4 -
setSignedCookie
bun
throws and exists with:P.S: These snippets work perfectly in a Hono-only environment
The text was updated successfully, but these errors were encountered: