paljs / prisma-tools

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

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

Open skovvur opened 11 months ago

skovvur commented 11 months 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