We're seeing a discrepancy between Vercel's local CLI build and Git-triggered cloud deployments for a NestJS monorepo.
Repository:
- Turborepo
- NestJS API
- Next.js frontend
- Node 22
What we've verified:
✅ pnpm install ✅ pnpm build ✅ pnpm typecheck ✅ GitHub Actions passes ✅ vercel build --yes passes locally (including Vercel's TypeScript 5.9.3 compilation)
However, Git-triggered deployments consistently fail during the additional NestJS/@vercel/node compilation with TS2353 errors stating that status and updatedAt do not exist.
We've already verified:
- generated declarations
- package exports
- path mappings
- clean rebuilds
- cache-disabled deployments
- fresh clones
- complete type-chain audit
No repository-side issue has been found.
We also tried:
vercel deploy --prebuilt
but that currently fails before upload with:
File does not exist: apps/api/node_modules/reflect-metadata
So we have not yet been able to determine whether a prebuilt deployment avoids the TS2353 issue.
Has anyone encountered a situation where:
vercel buildsucceeds locally- but the Git-based cloud build fails with different TypeScript results?
If so, what differences between the local CLI build and the cloud Git builder should we inspect?
Deployment ID: dpl_77oaB3xv8M35gyX27fB2VFsZJGrS