Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate fails on Windows whenever enums are used in schema #582

Closed
genehynson opened this issue Jul 14, 2023 · 0 comments
Closed

generate fails on Windows whenever enums are used in schema #582

genehynson opened this issue Jul 14, 2023 · 0 comments
Assignees

Comments

@genehynson
Copy link

Description and expected behavior

zenstack generate command fails on Windows with the following error whenever enums are used in the schema.zmodel file. Remove the enums and the generate command works successfully.

⌛️ ZenStack CLI v1.0.0-beta.8, running plugins
✔ Running plugin Prisma
✔ Running plugin Model Metadata
⠋ Running plugin Access PolicyError compiling generated code:
node_modules/.zenstack/policy.ts:3:22 - error TS2307: Cannot find module '....srcgeneratedprisma-client' or its corresponding type declarations.

3 import { role } from "..\..\src\generated\prisma-client";
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✖ Running plugin Access Policy
: Error compiling generated code

Reproduction repo here: https://github.com/benrutt99/zenstack-test

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • ZenStack version: 1.0.0-beta.8
  • Prisma version: 4.14.0
  • Database type: Postgresql

Additional context

  • this issue only seems to occur on Windows. On Mac this issue does not occur.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants