PrismaP
Prisma10mo ago
7 replies
qode

panicked at query-engine\query-engine-node-api\src\engine. Failed to deserialize constructor options

Hi guys.

I have a shared prisma package setup in one repo, and 2 other repositories (frontend and server) that use the shared prisma package.

This setup has been working very fine for a long time. but just today i added a new table and deployed the updated package (something i do every week). and it's craching my servers.

On the other projects, reinstalling the latest version of the shared package and running the projects throws this error:
values for data_model, log_level, and any field that is not Option<T>
[1]             : Error { status: InvalidArg, reason: "missing field `enableTracing`", maybe_raw: 
0x0 }


dist/index.ts
import { PrismaClient } from '@prisma/client'
import {PrismaClientContext} from './index.d'

const prisma = new PrismaClient()

export const prismaClientContext: PrismaClientContext = {
    prisma
}


shema.prisma
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "debian-openssl-3.0.x", "linux-musl"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

// ...
Screenshot_2025-04-10_180900.png
Was this page helpful?