Skip to content

Commit c270780

Browse files
committed
Improve prisma errors for missing generate step
1 parent dbda820 commit c270780

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/fifty-lions-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Improve prisma errors for missing postinstall

packages/cli-v3/src/commands/deploy.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,13 @@ function checkLogsForErrors(logs: string) {
639639
docs.config.prisma
640640
)}`,
641641
},
642+
{
643+
regex: /@prisma\/client did not initialize yet/,
644+
message: `Prisma client not initialized yet.\nDid you forget to add the postinstall script? ${cliLink(
645+
"Config docs",
646+
docs.config.prisma
647+
)}`,
648+
},
642649
{
643650
regex: /sh: 1: (?<packageOrBinary>.*): not found/,
644651
message: `$packageOrBinary not found\n\nIf it's a package: Include it in ${cliLink(

0 commit comments

Comments
 (0)