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

error: Environment variable not found: DATABASE_URL. #8

Open
janpio opened this issue Feb 21, 2020 · 1 comment
Open

error: Environment variable not found: DATABASE_URL. #8

janpio opened this issue Feb 21, 2020 · 1 comment

Comments

@janpio
Copy link

janpio commented Feb 21, 2020

Right now it errors if you are missing an ENV var from e.g. env("DATABASE_URL"):

C:\Users\Jan\Documents\prisma-chinook\cli -> origin-demo (cli -> origin) (prisma-chinook-cli -> [email protected])
λ pv
Error: Error: Schema parsing
error: Environment variable not found: DATABASE_URL.
  -->  schema.prisma:7
   |
 6 |   provider = "mysql"
 7 |   url      = env("DATABASE_URL")
   |

Validation Error Count: 1
    at Object.<anonymous> (C:\ProgramData\nvm\v12.6.0\node_modules\prisma-viewer\node_modules\@prisma\sdk\dist\engineCommands.js:128:23)
    at Generator.throw (<anonymous>)
    at rejected (C:\ProgramData\nvm\v12.6.0\node_modules\prisma-viewer\node_modules\@prisma\sdk\dist\engineCommands.js:6:65)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)

Is this useful/helpful?
I see you are using @prisma/sdk here, maybe we should have a way to skip this validation step by choice?

@williamluke4
Copy link
Owner

williamluke4 commented Feb 22, 2020

I see you are using @prisma/sdk here, maybe we should have a way to skip this validation step by choice?

Yes, that would be helpful :)

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