-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Warning during generate since 2.9.0: Could not resolve PrismaClient type declaration path. This may break plugins that depend on it. #1875
Comments
Hi @marekryb , thanks for reporting this. I'll look into it. |
Fixed in 2.9.1 |
Came here after hitting this error and having just upgraded to Before:
After:
|
Hi @tony-cocco , is it a pnpm monorepo? |
Hi @ymc9 - yes. I tried to compare with the sample repo in the original post but it's currently a 404 for me. Happy to provide any other config we are using. |
Got it. I think I know what's going on. Will make a 2.9.2 fix. |
Same warning/error here:
⌛️ ZenStack CLI v2.9.1, running plugins
⠋ Generating Prisma schemaCould not resolve PrismaClient type declaration path. This may break plugins that depend on it.
✔ Generating Prisma schema
✔ Generating PrismaClient enhancer
👻 All plugins completed successfully!
Failed to format Prisma schema file
Don't forget to restart your dev server to let the changes take effect. Generated Prisma file seems fine and the enhanced zenstack client works without issues. |
Hello guys, could you try if you still have the warning with the new 2.9.2 release? |
Change snippet: zenstack:
- "@zenstackhq/runtime": 2.8.1
- "@zenstackhq/tanstack-query": 2.8.1
- "@zenstackhq/server": 2.8.1
- zenstack: 2.8.1
+ "@zenstackhq/runtime": 2.9.2
+ "@zenstackhq/tanstack-query": 2.9.2
+ "@zenstackhq/server": 2.9.2
+ zenstack: 2.9.2 I was also interested in using the new I do NOT have the warning. My build also seems to be back to stable unlike the 2.9.1 version. I want to say 2.9.2 fixed everything for me. ❤️ |
Thank you for the confirmation @tony-cocco ! |
I can also confirm that the warning is no longer displayed with the new version. Thank you so much for the quick fix! 🎉 The only warning that remains is: Failed to format Prisma schema file However, this is probably a separate issue... 😅 |
Yes, likely a separate issue ... do you have a sharable repro? |
I'm closing it for now since the original issue is resolved. Please help create separate issues as needed. Thanks! |
Description and expected behavior
Since upgrading to version
2.9.0
, I am having a warning duringzenstack generate
command.This happens only in monorepo setup. I initially tried to reproduce in 'plain' repo, but could not.
It is probably related to the fact that I specify custom prisma output directory.
Repro repo: https://github.com/marekryb/zenstack-290-warning
Environment (please complete the following information):
Additional context
I am using pnpm. Did not try with npm or yarn workspaces.
The text was updated successfully, but these errors were encountered: