elysia icon indicating copy to clipboard operation
elysia copied to clipboard

cannot destructure in derive

Open staciax opened this issue 1 year ago • 3 comments

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"}

staciax avatar Jul 20 '24 16:07 staciax

Facing the same issue, sadly. We were able to workaround the issue by downgrading to =1.1.2.

QEDK avatar Jul 21 '24 23:07 QEDK

I have the same issue in 1.0.23

nephix avatar Jul 22 '24 17:07 nephix

Enfrentando o mesmo problema, infelizmente. Conseguimos contornar o problema fazendo downgrade para =1.1.2.

Testei com essa versão e persiste o problema

felipebdn avatar Aug 01 '24 15:08 felipebdn

Does this problem still persists in the latest version (1.1.5)?

SaltyAom avatar Aug 19 '24 11:08 SaltyAom

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

staciax avatar Aug 19 '24 11:08 staciax