hi, anyone know I'm getting this typescript error ...
# orm-help
m
hi, anyone know I'm getting this typescript error for prisma events?
a
How your "prismaClient" is instanciated ? I think you may need to pass it some additionals params at instanciation time: https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#log-a-query-event-to-console
m
Copy code
let prismaClient = new PrismaClient({
  log: [
    {
      emit: 'stdout',
      level: 'query',
    },
    {
      emit: 'stdout',
      level: 'error',
    },
    {
      emit: 'stdout',
      level: 'info',
    },
    {
      emit: 'stdout',
      level: 'warn',
    },
  ],
});
oh yeah that's weird, it goes away when I do
Copy code
const prismaClient = new PrismaClient({
  log: [{ level: 'query', emit: 'event' }],
});
I see, I see
thank you! 🙂
a
👍