Closed bogeychan closed 2 months ago
1.1.3
WSL Ubuntu
import { Elysia } from "elysia"; new Elysia() .get("/", ({ set, cookie: { auth } }) => { console.log(auth.value); return ""; }) .listen(8080);
Open http://localhost:8080/ in browser
no error
{"name":"TypeError","message":"Right side of assignment cannot be destructured"}
This works as expected:
import { Elysia } from "elysia"; // order of destructured objects matter `cookie, set` !== `set, cookie` new Elysia() .get("/", ({ cookie: { auth }, set }) => { console.log(auth.value); return ""; }) .listen(8080);
Works with aot: false too: new Elysia({ aot: false })
aot: false
new Elysia({ aot: false })
reported on discord
yes getting the same issue in version 1.1.3
Should have been fixed with a59edcc, published under 1.1.4
Can confirm it works 🚀 thank you @SaltyAom 🙏
ty, works for me too
What version of Elysia.JS is running?
1.1.3
What platform is your computer?
WSL Ubuntu
What steps can reproduce the bug?
Open http://localhost:8080/ in browser
What is the expected behavior?
no error
What do you see instead?
Additional information
This works as expected:
Works with
aot: false
too:new Elysia({ aot: false })
reported on discord