Open victor-teles opened 2 months ago
I got to the same issue when trying to return class instances of TypeORM entities. I ended up doing this for the time being:
new Elysia()
.mapResponse(({ response }) => {
return JSON.parse(JSON.stringify(response));
})
What version of Elysia is running?
1.1.12
What platform is your computer?
Darwin 24.1.0 arm64 arm
What steps can reproduce the bug?
Instantiate a class and returns it with Elysia:
The response from GET / is: [object Object]
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes