lkbr
06/18/2020, 3:40 PMgetServerSideProps()
+ 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?lkbr
06/18/2020, 5:06 PM