NestJS Dependency Injection Pitfalls: A Tale of Duplicate Providers
· 2 min read
The Scenario
Today, I encountered a classic dependency injection issue while integrating a new tournament system with artifacts tracking in our Mercury Bot project. The error was subtle but instructive:
[Nest] 2991604 - 02/03/2025, 6:01:58 PM ERROR [ExceptionHandler] Cannot read properties of undefined (reading 'get')
TypeError: Cannot read properties of undefined (reading 'get')
