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
I'm using ts-lambda-api as a framework for my application, which allows me to declare controllers using decorators that are discovered at runtime, rather than statically declared.
It seems like the typescript plugin only compiles files that can be resolved at compile time from the function entry points, which means the controllers are not compiled.
My workaround at the moment is to have dummy imports in my main class to import those controller classes so they can be found. Is there a better way to control this behaviour?
The text was updated successfully, but these errors were encountered:
We are using Node Dependency Injection library and experiencing the same issue due to its dynamic imports. Are there any plans to fix this, please?
Our current workaround relies on statically importing the services again in our entry point which is a little hard to maintain.
I'm using ts-lambda-api as a framework for my application, which allows me to declare controllers using decorators that are discovered at runtime, rather than statically declared.
It seems like the typescript plugin only compiles files that can be resolved at compile time from the function entry points, which means the controllers are not compiled.
My workaround at the moment is to have dummy imports in my main class to import those controller classes so they can be found. Is there a better way to control this behaviour?
The text was updated successfully, but these errors were encountered: