Hello, guys! I've ran into very interesting bug. I...
# orm-help
e
Hello, guys! I've ran into very interesting bug. I have a prisma + nexus + nexus-prisma-plugin + graphql backend which I run on AWS lambdas using serverless framework. To optimise lambda sizes I've created multiple layers. The problem I'm having is when deploying from gitlab ci-cd I get an error `You most likely forgot to initialize the Prisma Client. Please run
prisma generate
and try to run it again.\nIf that does not solve your problem, please open an issue.` but I've installed all packages in prismaLayer and ran prisma generate. When all operation are being done manually on my machine everything deploys nicely. Do any of you have experience working in this stack and may have any advice how could I resolve it? Thanks in advance. Happy Friday! 😉
find out my problem after all! It was that prisma generate didn't output .prisma/client to correct lambda layer node_module directory so I had to set it in schema.prisma file under schema as output attribute!
I guess sometimes you just need to say your pain out loud to find the solution 😄