PrismaP
Prisma11mo ago
3 replies
Lateralus

Prisma Nuxt Turborepo: Cannot find module

I'm attempting to use Prisma client in a monorepo based off Prisma's official guide: https://www.prisma.io/docs/guides/turborepo. I'm running into issues trying to use the generated client in a Nuxt application located in the monorepo. When I import the client into one of my API routes I get a module not found error: cannot find module 'C:\packages\database\generated\client'

When I examine the .nuxt/dev/index.mjs file in dev, it appears that the Prisma client is using a relative path instead of an absolute path
image.png
Was this page helpful?