Trouble with using `hono/cookie` helper with honox
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:
2 Replies
Which version of Hono are you using? I had that problem when still on 3.?. I solved it by updating to 4.4.7.