diff --git a/src/builder.ts b/src/builder.ts index f7722ecc..6f4f3077 100644 --- a/src/builder.ts +++ b/src/builder.ts @@ -191,7 +191,7 @@ let defaultClientPath: string if (process.env.NEXUS_PRISMA_CLIENT_PATH) { defaultClientPath = process.env.NEXUS_PRISMA_CLIENT_PATH } else if (process.env.LINK) { - defaultClientPath = path.join(process.cwd(), '/node_modules/@prisma/client') + defaultClientPath = eval("path.join(process.cwd(), '/node_modules/@prisma/client')") } else { defaultClientPath = '@prisma/client' }