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
3 Replies
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!#ask-ai
Hey 👋
Is PrismaClient available through the relative path?
Can you try changing it to absolute path and check if it works?