What problem does it solve?
NestJS projects often encounter runtime DI errors, module/import misconfigurations, guard/interceptor issues, pipe validation failures, or microservice and WebSocket gateway problems. This skill provides a repeatable, phase-based debugging workflow to identify and fix these issues efficiently.
Core Features & Use Cases
- Four-phase debugging methodology: gather context, isolate the problem, debug and fix, verify and document.
- Covers common error patterns: dependency resolution, circular dependencies, guards/interceptors, pipes, microservice communication, and WebSocket/gateway errors.
- Practical templates, code snippets, and commands to implement fixes in real projects.
- Use Case: When a NestJS app throws "Nest cannot create the module" or "Cannot read property canActivate of undefined", follow the steps to locate the faulty provider, adjust module imports, and re-run tests.
Quick Start
Start by enabling NestJS debugging in your project (for example, nest start --debug --watch) and follow the four-phase workflow to reproduce and fix issues.