Closed elendirx closed 4 years ago
Solved. The problem is that Babel deletes metadata. I was able to make it work thanks to https://github.com/leonardfactory/babel-plugin-transform-typescript-metadata.
I always needed to explicitly add decorators for DI to work, great to see this can be fixed :D
ah this is an awesome fix/tip, was already thinking why do I have to do the DI "manually". Should have read this issue earlier. Think it would be awesome to have this in the sample app. :)
Think it would be awesome to have this in the sample app. :)
Feel free to open a PR!
Thank you for this awesome example. I wonder if you succeeded in using NestJs dependency injection. I'm trying to inject some services into a controller, but it ends up being
undefined
. This is just a question, feel free to close this issue. Thanks!