Hi all. Getting this weird error, probably common...
# orm-help
b
Hi all. Getting this weird error, probably common, using Prisma version 1.23.2 "Unexpected Name, found }" It's not this: https://github.com/prisma/prisma/issues/3452 because I'm ONLY using scalar types. Any help?
m
Hey, can you provide your schema plz?
b
Sure thing, one second
Copy code
type Item {
  id: ID! @unique
  title: String!
  description: String!
  image: String
  largeImage: String
  price: Int!
  dummy: Boolean
}
That's it
m
@Harshit: Do you have any idea for this one? ^
h
Hi @Benjamin Sampson, I am unable to reproduce this in the latest version.
Can you please try the latest version of prisma 🙂
d
I think that you get this error when you run
prisma generate
. This happens because of this https://github.com/prisma/prisma/issues/3184 You can get around this by bypassing the JS schema generation by running the following command
prisma generate --endpoint
- note that this would work only after Prisma service is live i.e. after a
prisma deploy
cc @Harshit: Can you reproduce this issue with
prisma generate
? If yes, can you please create an issue for this using the data model provided by @Benjamin Sampson 🙏
h
Still can't reproduce it @divyendu
👌 1
d
Interesting, @Benjamin Sampson Can you please share your prisma cli version via
prisma --version
command? Most likely this issue is resolved in the latest CLI version, can you please try an update via
npm install -g prisma
? @Harshit: What version of Prisma CLI are you on?
h
prisma/1.24.0 (darwin-x64) node-v11.5.0 , I think @Benjamin Sampson is using 1.23
d
Can you try a repro with 1.23?
h
Just doing that
Still no reproduction
b
Issue remains on version 1.24.0
Note, I'm getting the error when running
graphql playground
Sorry I should have specified
prisma deploy
is running fine
@Harshit Is
graphql playground
working for you?
h
Hi,i will look into this a bit later but can you try prisma playground instead of that one
b
Error persists using
prisma playground
h
Do you have a .graphqlconfig file, if yes please share it
Also you can go-to localhost:4466 for now
b
Copy code
projects:
  app:
    schemaPath: 'src/schema.graphql'
    extensions:
      endpoints:
        default: '<http://localhost:4444>'
  prisma:
    schemaPath: 'src/generated/prisma.graphql'
extensions: prisma: prisma.yml
h
Try deleting this and run prisma playground
b
This works but I'm not interacting with my GraphQL Yoga server
h
You can access the yoga playground in it's url for now,I will check your config a bit later to enable yoga as well
b
Ok thanks a lot man
Fixed! I was missing a query in my
schema.graphql
file - apparently not having one causes an error
🙌 1