Notes on Prisma + TypeScript Build Issues
-
@prisma/client version requirement
- The latest versions of
@prisma/client require Node.js 22.x or above.
- Running Prisma on Node.js 20 will trigger warnings or errors.
-
TypeScript compilation requirement
- The
tsconfig.json must set noImplicitAny: true.
- Otherwise, running
npm run build will fail on any non-strict type usage, causing the build to exit immediately.
Notes on Prisma + TypeScript Build Issues
@prisma/clientversion requirement@prisma/clientrequire Node.js 22.x or above.TypeScript compilation requirement
tsconfig.jsonmust setnoImplicitAny: true.npm run buildwill fail on any non-strict type usage, causing the build to exit immediately.