Open matthewmueller opened 3 years ago
Figured it out,
generator client {
- provider = "prisma-client-js"
+ provider = "go run github.com/prisma/prisma-client-go"
previewFeatures = ["createMany", "groupBy", "orderByRelation"]
}
Maybe we can improve the error message?
The go client is no longer supported.
That unfortunately doesn't change anything about the weirdness about the error message from the generator.
@matthewmueller Do I understand correctly that basically trying to generate a normal JS Client via the Go CLI leads to this unhelpful error message?
Do I understand correctly that basically trying to generate a normal JS Client via the Go CLI leads to this unhelpful error message?
Correct
Needs to be fixed by Prisma core via https://github.com/prisma/prisma/issues/10564
Right now you get a rather unusual error if you have
provider = "prisma-client-js"
. Tried generating a new Go client:My schema looks like this: