You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.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):
Additional context
The text was updated successfully, but these errors were encountered: