Hi Everyone. I am having this message this morning...
# prisma-client
n
Hi Everyone. I am having this message this morning
Copy code
Error: Generator at prisma-dbml-generator could not start:

/bin/sh: 1: prisma-dbml-generator: not found
Ubuntu 18, Node 14 prisma : 2.30.2 @prisma/client : 2.30.2 Current platform : debian-openssl-1.1.x
d
prisma-dbml-generator
is an npm package. I am unsure if it has been added as a dependency for prisma and hasnt installed or not, you should be able to install it manually and everything should work
n
@Dominic Hadfield, thank you.
npm i prisma-dbml-generator -D
After installing it and running prisma generate, it produces:
Error: Generator at prisma-dbml-generator could not start:
/bin/sh: 1: prisma-dbml-generator: not found
I am using Prisma in NestJs
d
interesting, can you share a stripped down repo that reproduces it so that I can poke at it a bit
n
Sure. Let me push and share
d
thanks
n
Can I send you an invite on the github repo?
d
n
Hello Dominic, I have upgraded to nestjs 8 using the example at
nestjs-prisma-starter
updated 2days ago.
However, I have still sent you and invite because I am experimenting on prisma and I will break a lot of things.
After reading a couple of similar issues online, I suspects the error is coming from
apollo-server
and
@nestjs/graphql
d
hey, I am able to use this correctly after some minor steps. You need to copy the
.env.example
file to
.env
and change the authentication values so that you can access a locally running instance of postgres
I believe that this may be your issue
if not, nuke the directory, and re clone the project as it is working fine for me
once you have connected it all up correctly, run
npx prisma db push
and
npx prisma db seed --preview-feature
and you should have seed data in the database
n
@Dominic Hadfield Thanks. I upgraded to Nestjs * and every broke.
I have fixed it though and it working. Thanks for your immense support.
d
no problem, glad I could help