Skip to content

No dmmf available from new prisma client generator #142

@mdmower-csnw

Description

@mdmower-csnw

I wanted to try out Prisma's new client generator (available starting in v6.6) but best I can tell, there's no dmmf export available. As such, I don't think it's possible to extend the client based on the "Custom Prisma client location" readme instructions. The new generator is... well, new... so I thought I'd mention it here in case you know whether this is a bug or feature request that needs to be made at the Prisma project to export dmmf.

Here's a snippet that shows the only text match for "dmmf" in the generated client.ts:

export namespace Prisma {
  export type DMMF = typeof runtime.DMMF

And here's the Prisma generator config I'm using:

generator client {
  provider     = "prisma-client"
  output       = "../src/generated/prisma"
  moduleFormat = "esm"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions