NestJS · Senior · Question 45 of 75
What's a sensible approach to upgrading a large Nest app to a new major version?
- 1Never upgrade
- ✓Correct answer: Read the migration guide, upgrade all
@nestjs/*packages together, fix breaking changes (e.g. Express 5 routes in v11), and rely on e2e tests - 3Upgrade one
@nestjspackage at a time across months
Explanation
Mismatched @nestjs/* versions cause subtle DI and type errors. Keep them aligned.