-
Notifications
You must be signed in to change notification settings - Fork 55
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
No output generated #36
Comments
It appears it's looking for the mmdc file in the wrong place. _NOTE: I removed some of the path and replaced them with
It should be looking here
but instead it's trying to find it inside my NX/libs folder |
Hey Jason! I'm out on some paternity leave so I will get to this when I have some more time. I'm seeing a lot of others running into similar problems and I think its a project setup issue. I started this off of the base case of project/
prisma/
schema.prisma and running the project from the project dir. It works for that but there are some use cases I'm not thinking of. Is your situation any different from this? For the time being I'm adding your schema to the test list to see if its an actual issue with the schema parsing or path or whatever else it could be. |
Same issue there
But no file to be found anywhere
And similar kind of issue, a node_modules path issue, because I'm using Dirty workaroundChange the path to match the current project folder structure const mermaidCliNodePath = path.resolve(path.join('node_modules', '.bin', 'mmdc')); // cant find the library
const mermaidCliNodePath = path.resolve(path.join('..', '..', 'node_modules', '.bin', 'mmdc')); // this works in my case Better workaroundAlso install the yarn add -D prisma-erd-generator # install this library
yarn add -D @mermaid-js/mermaid-cli # Workaround: install mermaid-cli locally |
I'm gonna add mermaid cli as a peer dependency that way it at least warns to install it as a dev dependency. It should already be included though as its a dependency for the package. |
|
@jasonmacdonald @kefniark Could one of you try out the next version and see if it at least throws errors for you? |
I confirm, now it throw an error if mermaid-cli is not available locally 👍 Error:
✔ Generated Prisma Client (3.6.0 | library) to .\node_modules\@prisma\client in 348ms
Error: Expected mermaid CLI at C:\Users\{PROJECT_PATH}\node_modules\.bin\mmdc but this package was not found. Now I get new trouble in docker deployment, if I try to run
Sadly I don't see any argument in |
Yeah easiest way forward there is to make the directory you want to output to. I'm closing now that this will give better insight into where the issues are coming up. |
I've looked through all the other topical issues and it seems even with the latest version I still cannot get it to produce any output, despite saying it completed just fine :(
OS: MacOS 12.0.1
package version: 0.6.1
Schema
Console log says everything is fine
But no diagram is produced.
The text was updated successfully, but these errors were encountered: