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

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

Open
Izag-Larm opened this issue Feb 8, 2025 · 0 comments

Comments

@Izag-Larm
Copy link

Izag-Larm commented Feb 8, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant