Open TenviLi opened 3 months ago
prisma:getGenerators neededVersions {} +294ms Error: Error: Expected property name or '}' in JSON at position 29
at Mf.parse (/home/work/node_modules/.pnpm/prisma@5.10.2/node_modules/prisma/build/index.js:1413:71)
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.
prisma:getGenerators neededVersions {} +294ms Error: Error: Expected property name or '}' in JSON at position 29
at Mf.parse (/home/work/node_modules/.pnpm/prisma@5.10.2/node_modules/prisma/build/index.js:1413:71)
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"
}
no problem
"@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 :
datasource db {
provider = "postgresql"
url = "postgresql://docker:docker@localhost:5432/project"
}
generator drizzle {
provider = "prisma-generator-drizzle"
}
model Token {
id String @id @unique @default(uuid())
refreshToken String
accessToken String
owner User @relation(fields: [ownerId], references: [id])
ownerId String
createdAt DateTime @default(now())
}
model User {
id String @id @unique @default(uuid())
tokens Token[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
@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 :/
> starter-api@1.0.0 generate /home/quentin/Documents/dev/perso/starter-api
> prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error:
Expected double-quoted property name in JSON at position 622
Nop :/
> starter-api@1.0.0 generate /home/quentin/Documents/dev/perso/starter-api > prisma generate Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Error: Expected double-quoted property name in JSON at position 622
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.