Skip to content

Cannot find module './zod' or its corresponding type declarations. #1667

@Tsimopak

Description

@Tsimopak

An error in line 6 of the generated enhance.ts

This happens when I provide the enhancer plugin in schema.zmodel like so,
image

This happens when I provide the enhancer plugin in schema.zmodel like so,
image

Why do I provide it again with the default settings? Because apparently, Zenstack does not generate the enhance API in node_modules/.zenstack if I don't
However, if I do provide the plugin, the CLI complains about the aforementioned error when I do zenstack generate
image

  • ZenStack CLI v2.4.1
  • zenstack@2.4.1
  • prisma@5.18.0
  • Postgress

Reference from discord: https://discord.com/channels/1035538056146595961/1274540789946388551/1274540789946388551

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions