-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
[BUG] [Prisma] Multiple enums on model not correctly imported #2939
Comments
Romakita
added a commit
that referenced
this issue
Dec 14, 2024
Romakita
added a commit
that referenced
this issue
Dec 14, 2024
Romakita
added a commit
that referenced
this issue
Dec 14, 2024
github-project-automation
bot
moved this from Review in progress
to Done
in Global Board
Dec 14, 2024
🎉 This issue has been resolved in version 8.3.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Hello @Romakita,
I noticed an issue with enums in schema.prisma, more precisely about their imports generated by the prisma generate command.
If you add multiple enums in your model like this :
schema.prisma
UserModel looks like this:
You can see that Role is not imported from './enums/index.js' but it is correctly generated in the enums folder.
To Reproduce
Expected behavior
The generator should be able to import all enums defined in a model :
Code snippets
No response
Repository URL example
https://codesandbox.io/p/devbox/8mxt56
OS
Windows
Node version
Node v22.5.1
Library version
v8.3.3
Additional context
No response
The text was updated successfully, but these errors were encountered: