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
No description
2 Replies
Prisma AI Help
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into #ask-ai if you get antsy for a second opinion!
Lateralus
LateralusOP2d ago
#ask-ai

Did you find this page helpful?