TypeError: Cannot read properties of undefined (reading 'exec')
why am i getting this error?
repo url: https://github.com/Shubhamxshah/arora-the-interview-app
GitHub
GitHub - Shubhamxshah/arora-the-interview-app
Contribute to Shubhamxshah/arora-the-interview-app development by creating an account on GitHub.

4 Replies
You selected the bot's instantaneous insights. Let me compile your answer right away!
Based on the knowledge sources provided, the error "TypeError: Cannot read properties of undefined (reading 'exec')" is a known issue in Prisma, particularly when deploying applications to Cloudflare environments.
This error typically occurs in the following scenarios:
1. When deploying Prisma applications to Cloudflare Pages or Workers
2. When using Prisma with Nuxt 3 in Cloudflare environments
3. When running applications locally with Wrangler (Cloudflare's development tool)
The error happens because Prisma tries to access the
exec
property of an undefined object, which is likely related to how Prisma attempts to determine the platform or execute commands in environments where certain Node.js APIs aren't available (like Cloudflare's edge runtime).
From the knowledge sources, this issue has been reported in:
- Prisma deployments to Cloudflare Pages GitHub Issue #25030
- Nuxt 3 applications using Prisma with Cloudflare Workers GitHub Issue #18593
Without examining your specific repository code, I can't provide a tailored solution, but based on the knowledge sources, you might try:
1. Updating to a newer version of Prisma (if a fix has been released)
2. Using a different deployment target if possible
3. Checking if your application is trying to use Prisma in an environment where it's not fully supported
If you're specifically working with Nuxt 3 and Cloudflare, this appears to be a known limitation with how Prisma works in edge environments.
I don't have enough information from the knowledge sources to provide a definitive solution for your specific case, but the error is consistent with known Prisma issues in Cloudflare environments.
š¤ Alright, thanks for letting us know that there's still some help needed. A team member will reply to you shortly.
In the meantime, please let us know any additional info, questions, or which parts of the answer may need clarification.When exactly do you get this error? Does it happen as soon as you start the app?
Can you provide instructions on how to run your app?
Hi Narul!
I was able to solve this by downgrading the version of authjs, for some reason latest version was throwing error with prisma.
Thanks for letting me know. I am glad to hear that š