-
Notifications
You must be signed in to change notification settings - Fork 54
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
Prisma ERD generator fails out of nothing suddenly. Worked before. #145
Comments
Yeah. I can confirm |
Hoping the latest release updating dependencies fixed it 🤞🏼 checking now. Just released a version with 4.5 prisma |
Seemed to work on my end for a few simple cases. @mathiasklenk @jferrettiboke still getting the issue? |
@keonik Unfortunately, it doesn't work. I'm still getting the same issue. These are my dependencies.
Could it be related with |
Still without solution npx prisma generate Command failed: /home/magnokf/rocketseat/ignite/nlw/copa/server/node_modules/.bin/mmdc -i /tmp/prisma-erd-rxQgJh/prisma.mmd -o /home/magnokf/rocketseat/ignite/nlw/copa/server/prisma/ERD.svg -t forest -c /tmp/prisma-erd-rxQgJh/config.json |
Okay next guess is to go through the OS and node versions to see if you are one of the current issues around mmdc and mermaid with Windows |
It's weird, the last few days it worked again. So it's kinda a bit unpredictable I must say. What fixes the issue temporarily was to completely remove the library and also @mermaid-js/mermaid-cli and then installing it again. Don't know if that helps though! |
I got the same |
@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. |
I've tried everything above and what worked for me was: I'm using Win10 WSL2 Ubuntu22.02 |
I got the same problem, |
Keep sharing OS and Node versions. Thus far it’s been mermaid issues with a few OS’s. As a fallback I believe running a .md file as the output can bypass a script related to this issue. |
Related to #123 |
First, sorry for all the duplicate "JNotelddim added a commit that referenced this issue" items 🙈 Anyways, that aside: EnvironmentI'm on MacOS Monterey (v12.4) with an M1 chip. I'm working with ProblemWhen I try to
(looks like the same If i delete So it is manageable for local development, but I'm needing a solution for building a docker image of my app. Anyways if anyone has a solution feel free to let me know :) |
Others use the disable flag to skip the ERD in docker. |
Ahh beautiful, thanks 🙏 |
Closing after finding this out. I believe the issue was an upgrade in mermaid going from v8 to v9. The alpha release which is v.1.3.0 of this repository is updated to version 10. Give it a try and let me know if this issue persists. |
The generator fails with the following output:
I have it setup like this in my
schema.prisma
file: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?The text was updated successfully, but these errors were encountered: