Troubleshooting Guide
Build and TypeScript
Build fails on CLI helper types
- Run:
Wrong imports from generated artifacts
- Regenerate artifacts with current CLI.
- Keep artifact naming normalized and avoid duplicated suffixes in model/service/controller names.
Runtime and connection issues
SQL startup failures
- Verify
DB_CONNECTIONand driver credentials. - Re-run migration/status with explicit target flags.
Mongo connectivity or DNS failure
- Verify:
MONGO_URIMONGO_DB_NAMEMONGO_TEST_URIMONGO_TEST_DB_NAME
CLI and packaging failures
npm run test:pack-smoke fails
factory:status --mongo skips factories
- Expected for SQL-only factories in a mongo-targeted check.
- Visible registry will exclude incompatible factories while leaving diagnostics.