Using Prisma with Nuxt 4's new directory structure
So after switching to the new directory structure on Nuxt 4 I've had this issue where I'm getting following error when trying to use API point which needs prisma.
'@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.
'@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.
This is despite me having Prisma generated. As you can see in the directory structure on the picture.
I figured that this should be since api point in the server can't access the root anymore. However if I try to move the generated folder for example into the server or shared I get following error.
Error: EPERM operation not permitted rename \my-app\generated -> \server\generated
Error: EPERM operation not permitted rename \my-app\generated -> \server\generated