Fix prisma client output path: target .prisma/client, not @prisma/client
Prisma 5.22's generator wants the explicit output to point at the
internal .prisma/client directory (which @prisma/client forwards to),
not the @prisma/client package directory itself — pointing it there
directly made `prisma generate` fail outright ("replace ... with
../backend/node_modules/.prisma/client").
This commit is contained in:
parent
791b9bb01e
commit
3629f5f66f
@ -10,7 +10,7 @@ generator client {
|
||||
// "Projekt-Root" ausgehend vom Schema-Pfad nach oben, findet dort kein
|
||||
// package.json und weicht auf einen unzuverlässigen Auto-Install-Fallback
|
||||
// aus (schreibt dann z. B. nach /root/node_modules statt backend/).
|
||||
output = "../backend/node_modules/@prisma/client"
|
||||
output = "../backend/node_modules/.prisma/client"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user