Skip to main content

3 posts tagged with "lessons-learned"

View All Tags

NestJS Dependency Injection Pitfalls: A Tale of Duplicate Providers

· 2 min read
Max Kaido
Architect

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')

The Root Cause