PrismaP
Prisma3mo ago
21 replies
sommeeeR

Error: TypeError: Cannot convert undefined or null to object

Im trying to migrate an old project using 6.3.1 to latest version (6.19.0).
Its a MySQL project. I want to use the new js libs instead of Rust engine as this is hosted in AWS. However, im running into this error when I run
prisma generate
: Error: TypeError: Cannot convert undefined or null to object
generator client {
  provider   = "prisma-client-js"
  engineType = "client"
}
// IT WAS THIS
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "linux-arm64-openssl-3.0.x"]
}
}
image.png
image.png
Was this page helpful?