prisma-erd-generator
prisma-erd-generator copied to clipboard
Unterminated string in JSON at position
When I am running command npx prisma generate
getting Unterminated string in JSON at position error but I can not see any error in my schema file.
npx prisma format
is working properly without any error. Can anyone tell me what can be the reason
datamodel.json is not generating fully. not getting why this is happening
@keonik can you please help me in this. When I am using disable true then it is working properly but ERD svg file is not generating. I want ERD file in clear visualization.
What version of node are you running?
What package manager are you using?
Can you use the package manager instead of using npx
?
throw a debug true on there and if you could share output that would be helpful as well.
What version of node are you running? What package manager are you using? Can you use the package manager instead of using
npx
?throw a debug true on there and if you could share output that would be helpful as well.
Thank you for this library. I am having the same issue. When enabling debuging, the debug folder is created, and inside it the data json. however the json terminates are line 33K sometimes 36K. I believe this is due to the schema being too large, ~5K lines.
I tried on a secondary schema, ~900 lines, it works great.
The problem is with large schemas only, i'm not sure what the cutoff is for max size. The error is the same as in the issue above, unterminated end of JSON, but that is because infact the json suddenly terminates.
I've been working on this one all morning....I am going to try and throttle it here soon. It'-s a HUGE json file, but that shouldn't kill it.