Skip to content

Generated "enhance" function not found. Please run zenstack generate first. #1983

Open
@Izag-Larm

Description

@Izag-Larm

Description and expected behavior
I started the development of a Nuxt application and after defining my zenstack schema, I wrote an API route for the server to retrieve a file entity from the database. But I get an error after having at the execution level of enhance(prisma). However I have already run npx zenstack generate and npx prisma db push.

Screenshots
zmodel

Image

Image

global prisma client

Image

route api

Image

Environment (please complete the following information):

  • ZenStack version: 2.11.5
  • Prisma version: 6.3.x
  • Database type: Postgresql

Additional context
I running nuxt with compatibility version 4

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