Bogeychan
Bogeychan
You can disable aot (_the codegen_) as a workaround: ```ts new Elysia({ aot: false }) ```
Works for me, thnx
@Coachonko, as a workaround, you can set `new Elysia({ aot: false })`. --- @SaltyAom, `inferBodyReference` needs a whole rewrite to be more robust. this line only checks for `myHandler(ctx)` https://github.com/elysiajs/elysia/blob/968650becd19850e4f33dca273d9e5838c937d70/src/sucrose.ts#L415-L416...
You can implement this with built-in hooks: ```ts import { Elysia, t } from 'elysia'; new Elysia() .onTransform((ctx) => { // runs before validation // replace this with your own...
It looks like `vinxi` assumes that your elysia handler under `routes/api/index.ts` is some kind of SSR module and therefore tries to load this handler as SSR. Which in turn causes...
This should work now. There's a type-registery check beforehand: https://github.com/elysiajs/elysia/blob/321a7c5539b9503cfd9169f8c313643c351037b0/src/type-system.ts#L221-L223
yay, just updated to `1.0.3` and it works 🎉 --- _BUT_ i found one more case where it doesn't work 😠```ts it('access all using destructuring assignment', async () =>...
@april83c, @kabir-asani, you can do something like this as a workaround: ```ts const Data = class Object { message: String; constructor(message: String) { this.message = message; } }; return new...
or implement `toJSON` like this: ```ts class Data { message: String; constructor(message: String) { this.message = message; } toJSON() { return structuredClone(this); } } ``` That way you dont have...
Thanks for reporting. What do you mean by `showing up on Elysia instance`? `schema` no longer exists on the object. This is what the typescript error tells you. In future,...