Skip to content

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

@skovvur

Description

@skovvur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions