Attila Orosz
Attila Orosz
Well it seems like emitDecoratorMetadata is not set so you are not getting type information. Are you sure it is set correctly?
Sorry for the very long delay. Did you find a solution to this? The tsconfig.json indeed looks ok to me.
What do you use to compile typescript? I know we had issues with esbuild and type casting from decorators.
You have reflect-metadata imported, right?
Could you try to make a simple repro repo for this so I can debug it further?
It seems like you are missing some config in .swcrc. Could you try adding ```json "transform": { "legacyDecorator": true, "decoratorMetadata": true } ``` into the "jsc" block?
That is an interesting use case, I never tried it myself but it should be fine in theory.
When you say failed what do you mean? Is it crashing or not registering the routes?
Could you setup a minimal repro repo so I can take a look?
I just tested it locally and it works as expected. What kind of error do you get?