Skip to content

Warning during generate since 2.9.0: Could not resolve PrismaClient type declaration path. This may break plugins that depend on it. #1875

Closed
@marekryb

Description

@marekryb

Description and expected behavior
Since upgrading to version 2.9.0, I am having a warning during zenstack generate command.

⠋ Generating Prisma schemaCould not resolve PrismaClient type declaration path. This may break plugins that depend on it.
✔ Generating Prisma schema
✔ Generating PrismaClient enhancer

This happens only in monorepo setup. I initially tried to reproduce in 'plain' repo, but could not.
It is probably related to the fact that I specify custom prisma output directory.

Repro repo: https://github.com/marekryb/zenstack-290-warning

Environment (please complete the following information):

  • ZenStack version: 2.9.0
  • Prisma version: 5.22.0
  • Database type: any (tried sqlite and postgres)

Additional context
I am using pnpm. Did not try with npm or yarn workspaces.

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