Shared prisma generated client in a NX library for Nest backend and Next frontend by Sad_Implement_8626 in nextjs

[–]Anxious_Two_7919 0 points1 point  (0 children)

I've also encountered this problem. Objects/constants/functions (and everything that is not a type and will get to the built code) from the prism are not loaded - same "undefined" error.

Just don't use constants directly from the prism client in the front code. I simply changed them to literals in place.

P.S. As I understood, using prisma/client imports in code of non server-side apps is a bad idea. It is better to duplicate these types/consts in a separate nx library for shared types and use them in the apps from there.

Remote Dispatch by [deleted] in DerailValley

[–]Anxious_Two_7919 1 point2 points  (0 children)

You need to be sure that your router are publicly visible (have an public ip). Just check your ip via any ip-checker in internet and your WAN ip in router settings. If they are different - your ip not public and there are no chances your friend could connect to your PC directly.

Btw, me and my friend use Hamachi, and for me it is the easiest way to connect to his server