Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nx-prisma:migrate failing: "Prisma Migrate has detected that the environment is non-interactive, which is not supported" #597

Open
Flip-Liquid opened this issue Jul 29, 2022 · 1 comment

Comments

@Flip-Liquid
Copy link

Problem

When attempting to add a new field on an existing table, I'm using
yarn nx run <project_name>:migrate to perform the migration after having added the fields on my schema.

The above command fails with the following error: "Prisma Migrate has detected that the environment is non-interactive, which is not supported". The same command has worked previously, so I suspect it's the specific changes to the schema which are causing the error.

Attempted workarounds

Running the prisma command yarn prisma migrate dev directly. This works:
image

Expected behavior

The NX command should support interactivity with prisma migrate dev.

Comments

It seems like this is a known issue. Prisma docs call it out: https://www.prisma.io/docs/concepts/components/prisma-migrate#troubleshooting

Also related to prisma/prisma#9943

@gperdomor
Copy link
Owner

gperdomor commented Nov 15, 2022

@Flip-Liquid please try with nx-prisma 4.0.0 and let me know if still happens 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants