I need some help with prisma generate for prisma 1...
# orm-help
j
I need some help with prisma generate for prisma 1 cli I'm getting ' Cannot read property of 'startsWith' of undefined' help has anyone come across this issue and found a fix??
r
Hey @Javanie Campbell 👋 Could you share your schema so that I could replicate this?
j
Hi here's my prisma.yaml
Copy code
endpoint: <https://us1.prisma.sh/javanie-campbell-53e865/restaurants-api/dev>

datamodel: datamodel.prisma

generate: 
  - generator: javascript-client
  - output: ../src/generated/prisma-client
Copy code
type User {
    id: ID! @id
    email: String! @unique
    firstName: String!
    lastName: String!
    createdAt: DateTime! @createdAt
}

type Location {
    id: ID! @id
    latitude: Float!
    longitude: Float!
}
r
I used your schema and it's working for me. Could you delete your current service and run deploy again?
j
Alright sure no prob, I redeployed but I'm the prisma.yml I had to remove the
-
beside the output property before it was able to redeploy and generate again
Sorry for the late response but you helped a great deal
👍 1