Chris Packett
08/30/2021, 5:45 AMRyan
08/30/2021, 5:53 AMChris Packett
08/30/2021, 5:58 AM(node:22892) UnhandledPromiseRejectionWarning: ReferenceError: prismaClient is not definedChris Packett
08/30/2021, 5:58 AMRyan
08/30/2021, 6:00 AMChris Packett
08/30/2021, 6:12 AMChris Packett
08/30/2021, 6:12 AMChris Packett
08/30/2021, 6:12 AMChris Packett
08/30/2021, 6:14 AMChris Packett
08/30/2021, 6:14 AMRyan
08/30/2021, 6:16 AMThe problem was I was calling prismaClient in an array.forEachStill it shouldn’t be undefined if it was imported correctly. Let me try with a simple script by importing Prisma and using
forEach.