prisma-erd-generator icon indicating copy to clipboard operation
prisma-erd-generator copied to clipboard

Unterminated string in JSON at position

Open ashusnp opened this issue 11 months ago • 5 comments

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

ashusnp avatar Mar 15 '24 05:03 ashusnp

datamodel.json is not generating fully. not getting why this is happening

ashusnp avatar Mar 16 '24 14:03 ashusnp

@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.

ashusnp avatar Mar 16 '24 14:03 ashusnp

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.

keonik avatar Apr 03 '24 03:04 keonik

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.

huthaifaa avatar Jun 26 '24 21:06 huthaifaa

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.

samrocksc avatar Aug 28 '24 07:08 samrocksc