-
Notifications
You must be signed in to change notification settings - Fork 10
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 generate
throw Error: Expected property name or '}' in JSON at position 29
#38
Comments
Hey, at first glance, it looks like it comes from the Prisma engine. You can try removing the prisma-generator-drizzle plugin and see if the problem persists. |
generator client {
provider = "prisma-client-js"
} "@prisma/client": "5.10.2",
"better-sqlite3": "^9.4.3",
"drizzle-kit": "^0.20.14",
"prisma": "5.10.2",
"prisma-generator-drizzle": "^0.6.6",
"drizzle-orm": "^0.30.2", |
Do you mind sending me a reproduction repo so I can take a better look? |
I have the same error unfortunatly :/ (Bun 1.0.35 / Prisma 5.2.0) If you want to test it, I can give you an example :
|
@qlaffont @TenviLi It seems that the problem is arising from comments in the tsconfig.json file, as JSON does not support comments by default. I've just released version 0.6.7 to address this issue. Please give it a try and let me know if it doesn't resolve the issue. |
Nop :/
|
Do you mind to modify this repository to reproduce your error? |
Strange I don't reproduce the error with deps I have installed... |
I followed the instructions in the README and executed the relevant commands.
However, when I reached the following command, an error occurred.
I searched extensively on search engines but couldn't find a solution.
The text was updated successfully, but these errors were encountered: