Open driedpampas opened 3 months ago
Update: I remembered removing the react-cookie
package earlier, and sure enough, adding it fixed the errors. Sure is odd.
And I removed it again and cookies still work fine. Will never figure out what happened.
It has started happening again with the same exact errors.
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