skip to Main Content

Javascript – Logger dependency injection error (Cannot read properties of undefined)

When I give the logger as a dependency to the class I am getting the following error: Screenshot of error message details E:my_sitesrccommondatabaseMongoDBConnector.ts:11 constructor(@inject(COMMON_TYPES.Logger) logger: ILogger) { ^TypeError: Cannot read properties of undefined (reading 'Logger') at Object.<anonymous> (E:my_sitesrccommondatabaseMongoDBConnector.ts:11:38) at Module._compile…

VIEW QUESTION
Back To Top
Search