Prisma ERD generator fails out of nothing suddenly. Worked before.
See original GitHub issueThe generator fails with the following output:
mathiasklenk@passbase lucid % npx prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
data model written to /Users/mathiasklenk/Developer/lucid/prisma/debug/1-datamodel.json
applied @map to fields written to /Users/mathiasklenk/Developer/lucid/prisma/debug/2-datamodel-map-applied.json
mermaid written to /Users/mathiasklenk/Developer/lucid/prisma/debug/3-mermaid.mmd
mermaid command: /Users/mathiasklenk/Developer/lucid/node_modules/.bin/mmdc -i /var/folders/qs/nv116z_51jv54p5lp4bx4vm80000gn/T/prisma-erd-JhnaHt/prisma.mmd -o /Users/mathiasklenk/Developer/lucid/prisma/ERD.svg -t forest -c /var/folders/qs/nv116z_51jv54p5lp4bx4vm80000gn/T/prisma-erd-JhnaHt/config.json
Error:
✔ Generated Prisma Client (4.5.0 | library) to ./node_modules/@prisma/client in 159ms
Command failed: /Users/mathiasklenk/Developer/lucid/node_modules/.bin/mmdc -i /var/folders/qs/nv116z_51jv54p5lp4bx4vm80000gn/T/prisma-erd-JhnaHt/prisma.mmd -o /Users/mathiasklenk/Developer/lucid/prisma/ERD.svg -t forest -c /var/folders/qs/nv116z_51jv54p5lp4bx4vm80000gn/T/prisma-erd-JhnaHt/config.json
I have it setup like this in my schema.prisma
file:
generator erd {
provider = "prisma-erd-generator"
output = "./ERD.svg"
erdDebug = true
}
I’m using "prisma-erd-generator": "^1.2.1"
and "@mermaid-js/mermaid-cli": "^9.1.7"
in my package.json. Is this a known bug or anything I am doing wrong?
Issue Analytics
- State:
- Created a year ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Issues · keonik/prisma-erd-generator - GitHub
Generate an ER Diagram based on your Prisma schema every time you run npx prisma ... Prisma ERD generator fails out of nothing...
Read more >prisma-erd-generator - npm
Start using prisma-erd-generator in your project by running `npm i prisma-erd-generator`. There are no other projects in the npm registry ...
Read more >Prisma generate command not working after upgrading
After upgrading to version 1.23.4, the generate command fails with the below error. Has the generate command been replaced with something new?
Read more >VmU - River Thames Conditions
Nucon rotary valve dimensions, Esteche river plate, Ski in out chalets meribel, Beginner soccer drills for kids, Amba neelambari sathyaprakash, ...
Read more >Untitled
Inside the nba studio, Key problem areas chronically ill patients, Denizli horozlari, Vox 3g android mobile price, Wellantcollege linnaeus roosterwijziging?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Others use the disable flag to skip the ERD in docker.
@johncblandii That didn’t work for me. I tried that multiple times without any luck. The error seems to be consistent across environments (development/localhost, production/localhost, preview/Vercel, and production/Vercel).
@keonik BTW, I don’t know if this could be related or not, but I have a monorepo setup. Mentioning this just in case.