Hi, I'm trying to generate erd using prisma but getting the following error,
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error:
✔ Generated Prisma Client (4.11.0 | library) to ./node_modules/.pnpm/@prisma+client@4.11.0_prisma@4.11.0/node_modules/@prisma/client in 673ms
could not parse datamodel
The prisma client was generated which suggested that the schema is valid. I've also tested the validity using npx prisma validate .
I was able to solve the issue by changing the directory that does not contain any spaces in its name. After seeing this issue I suspected that this may be the case. Hope this is fixed in the future.
Hi, I'm trying to generate erd using prisma but getting the following error,
The prisma client was generated which suggested that the schema is valid. I've also tested the validity using
npx prisma validate
.Following are the dependencies.
The prisma schema is as follows:
I'd really appreciate if someone can help me out :slightly_smiling_face: .