:wave: Hi friends, is anyone using a combination ...
# prisma-client
l
👋 Hi friends, is anyone using a combination of Prisma in Next.js
getServerSideProps()
+
PromiseReturnType<typeof fn>
(where
fn
is the function that returns prisma data)? Basically, defining
type X = PromiseReturnType<typeof fn>
seems to break Nexts automatic client side bundling elimination and includes
fn
(which contains prisma) client side. Which then means you get the
Module not found: Can't resolve 'child_process' in...
error. Am I doing something wrong is that specific combination not going to work?