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


15 Replies
Ahoy, knowledge seeker! I'm the Prisma AI Help Bot. Do you want a dev's response that might take a hot second, or an AI answer that's ready before your next coffee sip? Either way, your question is important to us.
This was with
DEBUG=* pnpm prisma generate
Use this generator
```
generator client {
provider = "prisma-client"
output = " ./generated"
engineType= "client"
Then change the import of prisma client from @prisma/client to ./prisma/generated/client
@Aman Trying this now 🙂 thanks!
@Aman That worked. Is there anyway to use the
datasourceUrl with the adapter? This seems to not work aynmore: How your adapter looks like?
This did the trick actually.
TRying to deploy to staging now 🤞
Havent touched this app in a year or so, but its still used by many users
That's great 😃
Need to test thoroughly tho, since its payments there and its a client of mine
Hopefully it works! I deploy via SST
Have you tried alchemy?
You think its gonna make AWS Lambdas have less cold start?
Oh you deploy to aws
No what is alchemy
Cool cool alchemy is for cloudflare mainly similar to sst
@Aman Should I add
./generated to .gitignore?Yes