Import types only for front-end code #2969
ProblemI get the next error when I try to import a enum at the front-end of my code: Suggested solutionIt would be nice I could import the types only: import { Status } from '@prisma/client/types' |
Replies: 2 comments
|
Hey @stijnvanderlaan 👋 |
|
Hi there, To keep our discussions organized and focused on the most relevant topics, we’re reviewing and tidying up our backlog. As part of this process, we’re closing discussions that have already been marked as answered but remain open. If this discussion still requires further input or clarification, feel free to reopen it or start a new one with updated details. Your contributions are invaluable to the community, and we’re here to help! For more details about our priorities and vision for the future of Prisma ORM, check out our latest blog post: https://www.prisma.io/blog/prisma-orm-manifesto. Thank you for your understanding and ongoing support of the Prisma community! |
Hey @stijnvanderlaan 👋
Unfortunately Prisma cannot be loaded in the frontend so you would either have to replicate those types or use a type generator like this if you're using GraphQL.