Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skovvur opened this issue Aug 9, 2023 · 1 comment
Open

Comments

@skovvur
Copy link

skovvur commented Aug 9, 2023

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
Copy link

Did you solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants