Hi, I just setup a new server using graphql yoga a...
# orm-help
a
Hi, I just setup a new server using graphql yoga and the latest prisma (1.17). However, when I try to import types from my datamodel into my
schema.graphql
I keep getting this error:
Copy code
Syntax Error: Cannot parse the unexpected character ".".

GraphQL request (1:1)
1: ../generated/prisma-client
In
schema.graphql
I am importing as such:
# import User from "../generated/prisma-client"
. This is how I did it in past servers I have done. I have
graphql-import
packaged added. Has anyone run into this issue? If so, can anyone please point me in the right direction
y
I’m having the same issue. Did you manage to resolve it?
@aroman
a
Thanks for creating it! I have not :( ! Also, thanks for sharing the link @yantakus
@yantakus hey if you dont mind me asking, how do you have your
.graphqlconfig
file configured? I keep getting this after I added lawjollas suggestion on your post in the forum
Copy code
▸    Invalid prisma.yml file
 ▸    prisma.yml should NOT have additional properties. additionalProperty: generate
y
@aroman You know, I also have this exact error 🙂 Now you create a thread at prisma forum 🙂
a
@yantakus I fixed it 🙂 turns out I had the wrong version of Prisma. In one of my previous servers I was using Prisma 1.14 so I had to downgrade the version, because there were some changes in the prisma version which caused my other servers to break lol Thanks for everything dude!
y
@aroman But 1.14 doesn’t have
prisma-client
. It’s a great feature, I don’t see any reason not using it.