Hi, I am trying to do some introspection with 'npx...
# orm-help
m
Hi, I am trying to do some introspection with 'npx prisma introspect' but I get the error message TypeError: Cannot read property 'startsWith' of undefined. Any ideas how to solve this issue?
j
What is your
npx prisma -v
output?
(This should really not happen and is super strange.)
You can also set the
DEBUG=*
env variable and run the command again - should give you a lot more output.
m
npx prisma -v output: 2020-07-25T214133.249Z command Failed to get the definition file 2020-07-25T214133.250Z command Error: Couldn’t find
prisma.yml
file. Are you in the right directory? 2020-07-25T214133.251Z command Failed to get the definition file 2020-07-25T214133.251Z command Error: Couldn’t find
prisma.yml
file. Are you in the right directory? Prisma CLI version: prisma/1.34.10 (windows-x64) node-v14.4.0
issue solved - needed to install @prisma/cli
j
Yep, that output indicates that it was running Prisma 1.
We are working on improving that soon.