Skip to content

Prisma client is not generated for MacOS users #494

@d-klotz

Description

@d-klotz

When attempting to start Frigg in MacOs with the frigg start command, it fails because it can not locate the prisma client.
When looking at the core/prisma-mongodb/schema.prisma file, it's possible to see that we are sending in native in the binaryTarget array, so Frigg build command is probably filtering it out somewhere. Ideally the Prisma client should be generated according to the environment it's currently running in.

The current workaround is to run the following command in the backend folder:
npx prisma generate --schema=node_modules/@friggframework/core/prisma-mongodb/schema.prisma

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