Cannot access Prisma database

Hello, I'm currently using Prisma Postgres with Accelerate. It was fine accessing the database until yesterday afternoon. It seems to be a Prisma Client error on the build script. The error message is as follows:
Message: Error in Prisma Client request:


Invalid `STUDIO_EMBED_BUILD<"u"&&STUDIO_EMBED_BUILD?o$e():require(`${l.prismaClient}/runtime/${c}`),R=e,L=(0,MV.createHash)("sha256").update()` invocation in
/[my_project_path]/node_modules/prisma/build/index.js:4807:10635

... (full error message in file)
Message: Error in Prisma Client request:


Invalid `STUDIO_EMBED_BUILD<"u"&&STUDIO_EMBED_BUILD?o$e():require(`${l.prismaClient}/runtime/${c}`),R=e,L=(0,MV.createHash)("sha256").update()` invocation in
/[my_project_path]/node_modules/prisma/build/index.js:4807:10635

... (full error message in file)
These are what I have tried: - reinstalled @prisma/client and @prisma/extension-accelerate - deleted node_modules and reinstalled everything - cloned the repository again - cloned the repository again on Linux Mint (I encountered the error on Windows 11, but it still occurs even on Linux Mint) My team member has the exact same laptop configurations, Node version, and all package versions. I have checked the database URL in .env file to be exactly the same as hers. She can access the database from her laptop while I cannot from both of my Windows and Linux Mint laptops. Anyone has any thoughts on why this is happening?
No description
No description
No description
4 Replies
pterosaurs
pterosaursOP6mo ago
Error message:
pterosaurs
pterosaursOP6mo ago
Node version: 22.16.0 @prisma/client: 6.11.0 @prisma/extension-accelerate: 2.0.1 Resolved: This is fixed by running npm install prisma --save-dev
Nurul
Nurul6mo ago
Hey! So previously prisma wasn’t part of your dev dependencies?
pterosaurs
pterosaursOP5mo ago
I think it was. I checked the package.json and package-lock.json but I'm not sure about the specifics. Somehow it suddenly stopped working and npm install prisma --save-dev works for me I also encountered this error once again today, and after the above command I did npx prisma generate following this post: https://stackoverflow.com/questions/77951750/prisma-postgres-stopped-working-out-of-sudden-saying-database-string-is-invalid The error that occured today is the same as in the post i.e. invalid database string even though I'm using postgres+prisma with accelerate

Did you find this page helpful?