Open-Trader/opentrader
`moon run prisma:migrate` exited with error "Environment variable not found" on Windows
Aberta
#96 aberto em 9 de jan. de 2025
buggood first issue
Métricas do repositório
- Stars
- (2.749 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
I can confirm that this is reproducible only on Windows.
Reproduction steps:
-
Follow installation steps from CONTRIBUTING.md
-
Next, generate Prisma client:
moon run prisma:migrate
Command failed: "Environment variable not found"
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.