Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Cannot generate client #471

@lynn2910

Description

@lynn2910

Hello, I've been trying to install Prisma for my project, but I cannot generate the client (prisma.rs)

I don't have any error, I only see this:

     Running `R:\Code\kady\Tofu\target\debug\prisma-cli.exe generate`
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma

when using cargo prisma generate and my computer goes crazy with rustc and the Microsoft Linker, but no files or anything.

I have the following schema file:

generator client {
  provider = "cargo prisma"
  output   = "../src/prisma.rs"
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

model User {
  id String @id @db.VarChar(36)
}

And I created a crate named prisma-cli exactly as explained on the documentation:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions