-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting started doc is broken to run init cmd #609
Comments
Are you using the latest version 0.8.1, and are you using Go Modules or dep to initialise? |
I am following the I did not specify which gqlgen version. I believe it is from master. |
Ok, yeah dep isn't getting the ambient imports it needs from As a workaround for now, if you include these imports in your |
Fixed in #628 |
Same problem here with dep, gqlgen |
I got the new error I have the |
I'm unable to reproduce in
If you're still having issues can you give the exact steps to reproduce. Also worth noting that this |
that part works for me. but if you go a little further in that doc: https://gqlgen.com/getting-started-dep/#create-the-database-models what I don't know is the |
Ok I can see a couple of problems in the dep docs:
|
I think I followed that correctly. The package name is If I change to a wrong path it will say |
Clearing out all the generated files, then executing:
and then rerunning gqlgen resolved these types of issues for me. |
If anyone using
to the |
For anyone still struggling with this, |
Starting to see this issue again |
Looks like the issue is caused by go not downloading the introspection directory, at least I don't see it in my |
For anyone running into this issue on v0.17.8, @timohuovinen has the correct fix. You can force mod to grab the introspection directory by updating your tools.go:
|
This does not work when you are using a 'vendor' folder. Check your vendor folder the 'introspection.Directive' file is missing there. As a work around, remove the vendor folder, delete all the generated files and rerun the |
did not fix the issue for me |
Expected Behaviour
should continue generate what ever it should.
Actual Behavior
merging failed: unable to build object definition: unable to find type github.com/99designs/gqlgen/graphql/introspection.InputValue
Minimal graphql.schema and models to reproduce
The text was updated successfully, but these errors were encountered: