Open-Trader/opentrader

`moon run prisma:migrate` exited with error "Environment variable not found" on Windows

Offen

#96 geöffnet am 09.01.2025

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (319 Forks)auto 404
buggood first issue

Repository-Metriken

Stars
 (2.749 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I can confirm that this is reproducible only on Windows.

Reproduction steps:

  1. Follow installation steps from CONTRIBUTING.md

  2. Next, generate Prisma client:

moon run prisma:migrate

Command failed: "Environment variable not found"

image

Workaround:

If the command is executed as follows, it works fine:

pnpm exec prisma migrate dev --schema packages/prisma/src/schema.prisma

For some reason Prisma does not load the ENV variables from .env file, so the schema must be specified manually.

Contributor Guide