paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
689 stars 56 forks source link

TypeError: Cannot read properties of undefined (reading 'includes') #304

Open skovvur opened 1 year ago

skovvur commented 1 year ago

Hello,

I am trying to convert prisma schema to typescript models using pal schema typescript as per the docs. I am getting this error "◢ Converting your schema TypeError: Cannot read properties of undefined (reading 'includes')"

I tried pal g to generate with below json, it says "✔ Generating your files" but I am not seeing any files. {
"schema1": { "schema": "./prisma/schema.prisma", "backend": {
"prismaName": "prisma", "generator" : "nexus", "onDelete" : true, "output" : "src/test.ts" }, "frontend": { "admin": "false" } }
}

Could someone guide me in this regard please?.

Thanks Sunil K

AndryHTC commented 1 month ago

Did you solve this?