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

prisma -v causes prisma Error: Could not find schema.prisma #3596

Closed
LazerJesus opened this issue Sep 11, 2020 · 6 comments
Closed

prisma -v causes prisma Error: Could not find schema.prisma #3596

LazerJesus opened this issue Sep 11, 2020 · 6 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. topic: prisma version CLI: prisma version or -v

Comments

@LazerJesus
Copy link

on request of: prisma/migrate#586 (comment)

yarn prisma:version                                                                ...kages/backend-api
yarn run v1.22.4
$ prisma --version
  prisma Environment variables not loaded +0ms
@prisma/cli          : 2.6.2
Current platform     : darwin
Query Engine         : query-engine 6a8054bb549e4cc23f157b0010cb2e95cb2637fb (at node_modules/@prisma/cli/query-engine-darwin)
Migration Engine     : migration-engine-cli 6a8054bb549e4cc23f157b0010cb2e95cb2637fb (at node_modules/@prisma/cli/migration-engine-darwin)
Introspection Engine : introspection-core 6a8054bb549e4cc23f157b0010cb2e95cb2637fb (at node_modules/@prisma/cli/introspection-engine-darwin)
Format Binary        : prisma-fmt 6a8054bb549e4cc23f157b0010cb2e95cb2637fb (at node_modules/@prisma/cli/prisma-fmt-darwin)
Studio               : 0.272.0
  prisma Error: Could not find schema.prisma
  prisma     at Object.<anonymous> (/Users/finnfrotscher/code/cofenster/monorepo/packages/backend-api/node_modules/@prisma/cli/build/index.js:2:2830614)
  prisma     at Generator.next (<anonymous>)
  prisma     at fulfilled (/Users/finnfrotscher/code/cofenster/monorepo/packages/backend-api/node_modules/@prisma/cli/build/index.js:2:2827918)
  prisma     at processTicksAndRejections (internal/process/task_queues.js:97:5) +1s
✨  Done in 1
@janpio
Copy link
Member

janpio commented Sep 11, 2020

Can you reproduce this in a new project?

These are the required steps:

mkdir foo
cd foo
npm init -y
npm install @prisma/cli
npx prisma --version

If this does not give the same error message, it might be something with your project.

@janpio janpio added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. topic: prisma version CLI: prisma version or -v labels Sep 11, 2020
@LazerJesus
Copy link
Author

they dont lead to the same issue

@janpio
Copy link
Member

janpio commented Sep 14, 2020

prisma:version is just prisma --version?
Any other idea what could be going on here?

@LazerJesus
Copy link
Author

Yes it it

@pantharshit00
Copy link
Contributor

@FinnFrotscher I am also unable to reproduce this and looks like you have closed prisma/migrate#586.

Do you have new information here which can provide a concrete reproduction?

@LazerJesus
Copy link
Author

cant reproduce anymore. seems resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. topic: prisma version CLI: prisma version or -v
Projects
None yet
Development

No branches or pull requests

3 participants