[Q] How to use the types in Next 13 Client components #719
-
Trying to import types from the schema into Next 13 client component throws errors from the How can I reuse the types infered as
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
OK, so client components can't have a dependency to the drizzle client. Solved this by splitting the schema and the client in separate packages in my monorepo |
Beta Was this translation helpful? Give feedback.
-
I ran into a similar issues and refactored drizzle schema related files into a separate project in my monorepo. Hopefully there are no unexpected issues in the future. |
Beta Was this translation helpful? Give feedback.
OK, so client components can't have a dependency to the drizzle client. Solved this by splitting the schema and the client in separate packages in my monorepo