cannot destructure in derive
What version of Elysia.JS is running?
[email protected]
@elysiajs/[email protected]
What platform is your computer?
Darwin 23.5.0 arm64 arm (MacOS 14.5)
What steps can reproduce the bug?
import { bearer } from '@elysiajs/bearer';
import { Elysia } from 'elysia';
const app = new Elysia()
.use(bearer())
.get('/', ({ bearer }) => bearer)
.listen(8080);
console.log(
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`,
);
What do you see instead?
{"name":"TypeError","message":"Right side of assignment cannot be destructured"}
Facing the same issue, sadly. We were able to workaround the issue by downgrading to =1.1.2.
I have the same issue in 1.0.23
Enfrentando o mesmo problema, infelizmente. Conseguimos contornar o problema fazendo downgrade para
=1.1.2.
Testei com essa versão e persiste o problema
Does this problem still persists in the latest version (1.1.5)?
Does this problem still persists in the latest version (1.1.5)?
Sorry, I forgot to turn it off. It's working normally now. <3