Hi all, I am trying to run "prisma generate --endp...
# orm-help
o
Hi all, I am trying to run "prisma generate --endpoint", because playground can not show my schema. But I end up getting the error: ▸ [WARNING] in /home/aa/workspace/aa/prisma.yml: A valid environment variable to satisfy the declaration 'env:PRISMA_ENDPOINT' could not be found. Downloading schema ! ▸ Cannot read property 'getToken' of undefined Get in touch if you need help: https://slack.prisma.io To get more detailed output, run $ export DEBUG="*" (node:28930) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated I can't really figure out where this error originates from. Any input is appreciated 🙂
g
Sounds like it can't find your .
env
file... try adding `
Copy code
--env-file ./.env
💯 1
o
Thanks for the reply. I managed to get rid of the file error, but when I try to click on the schema tab on playground, I just get an blank page. When looking at the console via developer tools I get the following errors:
j
FYI - I recommend posting long excerpts like this in a text snippet!
o
Thanks for the feedback