Skip to content

Prisma 6.16.0 types issue with prisma-client generator #2240

@mhodgson

Description

@mhodgson

With the move to 6.16.0 the files in the generated Prisma Client models folder now use import type * as runtime from "@prisma/client/runtime/library" instead of import * as runtime from "@prisma/client/runtime/library". In the modified Zenstack version of these files we prepend import $Types = runtime.Types (unclear why this is needed). This now raises the following type error:

error TS1380: An import alias cannot reference a declaration that was imported using 'import type'.

I'd make a fix for this but I'm unclear if this import declaration is really needed or what purpose it serves.

Environment:

  • ZenStack version: 2.18.1
  • Prisma version: 6.16.0
  • Database type: Postgresql

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