Instead of calling container.get<Configuration>(TYPES.Configuration) everytime it is needed, instead bind it in the inversifyjs config as a new type and inject it into all services/classes that need it.
Problem: Classes are built internally by inversifyjs before the confinode initialization has binded the configuration to the container. The construction of the class then fails.
Solution: Use the async Provider functionality (https://github.com/inversify/InversifyJS/blob/master/wiki/provider_injection.md) Inject the Provider into the class and provide the class with the actual configuration once its binded.
Instead of calling
container.get<Configuration>(TYPES.Configuration)
everytime it is needed, instead bind it in the inversifyjs config as a new type and inject it into all services/classes that need it.Problem: Classes are built internally by inversifyjs before the confinode initialization has binded the configuration to the container. The construction of the class then fails. Solution: Use the async Provider functionality (https://github.com/inversify/InversifyJS/blob/master/wiki/provider_injection.md) Inject the Provider into the class and provide the class with the actual configuration once its binded.