prisma / studio

🎙️ The easiest way to explore and manipulate your data in all of your Prisma projects.
https://www.prisma.io/studio
1.91k stars 47 forks source link

Unable to init PersistenceStore undefined #790

Open devmnj opened 3 years ago

devmnj commented 3 years ago
  1. Prisma version (prisma -v or npx prisma -v): 3.2.1

  2. Logs from Developer Tools Console or Command line, if any: Unable to init PersistenceStore undefined

  3. Does the issue persist even after updating to the latest prisma alpha? (npm i -D @prisma/cli@dev)

  4. Prisma schema (if relevant):

    
    // This is your Prisma schema file,
    // learn more about it in the docs: https://pris.ly/d/prisma-schema

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[] }

sdnts commented 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

kleydon commented 2 years ago

Consistently running into "Unable to init PersistenceStore" error (presented by dialog, in Studio), in Firefox.

konotorii commented 1 year ago

This is happening on Opera GX now as well.

Current Opera GX version: 97.0.4719.61

kernmagalona commented 1 year ago

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?

Screen Shot 2023-05-15 at 2 35 03 PM

kleydon commented 1 year ago

I consistently encounter this on Firefox on the Mac, and have for at least a year, but not on Chrome.

ralph27 commented 1 year ago

I am encountering the same problem, is there no solution yet?

konotorii commented 1 year ago

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

mciechanowicz commented 1 year ago

same issue on the new project in Chrome. but it's working in safari