Open devmnj opened 3 years ago
Hey @manojap, were you running Studio in a Private / Incognito window? Studio needs access to the IndexedDB, which browsers usually deny in private windows
Consistently running into "Unable to init PersistenceStore" error (presented by dialog, in Studio), in Firefox.
This is happening on Opera GX now as well.
Current Opera GX version: 97.0.4719.61
I have updated my prisma schema and so far it was working then suddenly I kept on running on this issue when I try to use npx prisma studio. I also tried updating my prisma version and it is still the same. Do you guys have any idea of this?
I consistently encounter this on Firefox on the Mac, and have for at least a year, but not on Chrome.
I am encountering the same problem, is there no solution yet?
found my fix my checking console logs. my problem was studio couldnt connect to my db because the database url was incorrect. it may be for some here as well...
same issue on the new project in Chrome. but it's working in safari
Prisma version (
prisma -v
ornpx prisma -v
): 3.2.1Logs from Developer Tools Console or Command line, if any: Unable to init PersistenceStore undefined
Does the issue persist even after updating to the latest
prisma
alpha? (npm i -D @prisma/cli@dev
)Prisma schema (if relevant):
datasource db { provider = "sqlite" url = "file:./dev.db" }
generator client { provider = "prisma-client-js" }
model User { id Int @id @default(autoincrement()) email String name String? secret String? loc Location @relation("userLocation", fields: [lId], references: [id]) lId Int city City @relation("userCity", fields: [lId], references: [id]) cId Int ads AdPost[] View View? @relation(fields: [viewId], references: [id]) viewId Int? }
model Category { id Int @id @default(autoincrement()) name String? posts AdPost[] }
model Location { id Int @id @default(autoincrement()) name String? cities City[] guests User[] @relation("userLocation") }
model City { id Int @id @default(autoincrement()) name String? zip String loc Location @relation(fields: [locId], references: [id]) locId Int guests User[] @relation("userCity") }
model View { id Int @id @default(autoincrement()) posts AdPost[] visitor User[] }
model AdPost { id Int @id @default(autoincrement()) title String ? date String Excerpt String body String ? Aging String @default("0") condition String ? off_price Float price Float isLimitDeal Boolean @default(false) categories Category[] adBy User @relation(fields: [adById], references: [id]) adById Int views View[] }