John Fay
John Fay
We have this [issue](https://github.com/keonik/prisma-erd-generator/issues/163) on the prisma-erd-generator repo. We had thought upgrading to v9 of mermaid caused the issue but after downgrading to v8 we still have this problem. We...
Most of the time its a mermaid thing. I'll see if I haven't wrapped enums in quotes already. That's typically the route to get around some mermaid specifics.
Gave it a shot and it looks like the enums were not wrapped in quotes already. When I wrote out a schema ```prisma generator erd { provider = "node ./dist/index.js"...
What could be done is - Disabling enums in the output ```prisma generator erd { ... ignoreEnums = true } ``` - Asking maintainer to overwrite UK to U_K or...
This has to be related to upgrading mermaid-cli. [Here](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/defaultConfig.ts) are a list of the options we can pass in to configure the mermaid cli for generating this erd
I'm not sure if you can set the screen size or the min size but you can control the `useMaxWidth` which sets the width based on the browser screen size...
I'm going to make a change that reverts it back to the mermaid cli's puppeteer config setup found here https://github.com/mermaid-js/mermaid-cli/blob/9cd061ab77c3372bd4600721bac708967b1eec66/puppeteer-config.json#L3
If the issue persists this may be an issue mermaid should have in their list.
What this is currently sending to mermaid is... ```mermaid erDiagram "DailySchedule" { Int id "🗝️" String day String startTime String endTime } "Schedule" { Int id "🗝️" String name String...
Got it! Fix coming out to alpha shortly. I ended up searching for the relationship name on the other side and combining it with the initial. It then skips that...