You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Right side of assignment cannot be destructured
at /home/wsladmin/typescript/test-elysia-simple/src/index.ts:9:5
at /home/wsladmin/typescript/test-elysia-simple/node_modules/elysia/src/adapter/bun/index.ts:97:24
at listen (/home/wsladmin/typescript/test-elysia-simple/node_modules/elysia/src/index.ts:6029:31)
at /home/wsladmin/typescript/test-elysia-simple/src/index.ts:11:4
When tested without destructuring, it shows that decorator in undefined
It seems that the context here should be looking at the Elysia instance but it's looking at adapter instance instead.
Additional information
Same issue causes context.server to be undefined.
Have you try removing the node_modules and bun.lockb and try again yet?
Yes.
The text was updated successfully, but these errors were encountered:
What version of Elysia is running?
1.2.2
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
What is the expected behavior?
Prints
bar
What do you see instead?
Error:
When tested without destructuring, it shows that
decorator
inundefined
It seems that the
context
here should be looking at theElysia
instance but it's looking at adapter instance instead.Additional information
Same issue causes
context.server
to be undefined.Have you try removing the
node_modules
andbun.lockb
and try again yet?Yes.
The text was updated successfully, but these errors were encountered: