Skip to content

prisma-select issue for custom output path #210

Closed
@manarjan

Description

@manarjan

I am getting the below error when I try to use

const select = new PrismaSelect(info).value;

[Nest] 65877 - 17/05/2021, 16:45:13 [ExceptionsHandler] Cannot find module '.prisma/client'

My PrismaClient is in a custom path rather than the default, as I am using a monorepo for multiple microservices.

generator client {
    provider      = "prisma-client-js"
    binaryTargets = ["native", "darwin"]
    output        = "../src/.generated/prisma/client"
}

Is there a way to point PrismaSelect to the correct Client?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions