Pascal Sthamer
09/09/2021, 12:36 PM➤ YN0007: │ prisma@npm:2.30.3 must be built because it never has been before or the last one failed
141
➤ YN0007: │ @prisma/client@npm:2.30.3 [2a8e9] must be built because it never has been before or the last one failed
142
➤ YN0000: │ @prisma/client@npm:2.30.3 [2a8e9] STDOUT Prisma schema loaded from prisma/schema.prisma
143
➤ YN0000: │ @prisma/client@npm:2.30.3 [2a8e9] STDERR info The postinstall script automatically ran `prisma generate`, which failed.
144
➤ YN0000: │ @prisma/client@npm:2.30.3 [2a8e9] STDERR The postinstall script still succeeds but won't generate the Prisma Client.
145
➤ YN0000: │ @prisma/client@npm:2.30.3 [2a8e9] STDERR Please run `yarn prisma generate` to see the errors.
146
➤ YN0000: │ @prisma/client@npm:2.30.3 [2a8e9] STDOUT
It works fine locally. Anybody has an idea?Ryan
09/09/2021, 12:38 PMyarn prisma generate
?Pascal Sthamer
09/09/2021, 12:39 PMyarn install --immutable
(Using yarn berry. I tried both yarn 2 and yarn 3. It worked fine with yarn 2 in the past.)Pascal Sthamer
09/09/2021, 12:52 PMyarn prisma migrate
manually after yarn install --immutable
solves the issue. Maybe this is some kind of timing issue? I have nexus-prisma
installed, which is generated along with prisma:
generator nexus {
provider = "nexus-prisma"
}
Ryan
09/10/2021, 6:00 AMRyan
09/10/2021, 11:26 AMprisma generate
? Does it error out or run successfully?Pascal Sthamer
09/14/2021, 9:15 AMprisma generate
works fine. I fixed my CI actions by adding an additional step after `yarn install --immutable`:
yarn prisma generate
binaryTargets
is set to native
.