-
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
generating core failed: unable to load github.com/kelvin/gqlgen-todos/graph/model - make sure you're using an import path to a package that exists #1765
Comments
I'm having the same issue. I think there's something broken in new release Worked for me. |
If you want to use v0.15.0, you can for now comment out the autobind option in the gqlgen.yml and it should work fine: # ...
resolver:
# ...
autobind:
- "your module name/graph/model" || # ...
resolver:
# ...
# autobind:
# - "your module name/graph/model" |
Yes, You have some workarounds for this(choose the one you like):
|
Sorry folks! I would appreciate more code coverage around this area, so PRs are welcome. |
* Improve test case for #1765 * Imporve test cases for init and generate
Seems the issue persists, but when I am commenting out autobind, the generate fails to find my custom models:
|
@domgolonka Hi, have you tried the master branch yet? |
@ipfans and @StevenACoffman this is still an issue on 0.16 and on master. I was simply trying out the demo here and it wouldn't work. Note: there may be different issues. I want to point out that the autogenerated config file by Go version: 1.17 |
what if I use a private code repo? |
@honeywild should be fine! Also, I think the documentation has been corrected now to comment out the autobind until you actually have files in there to autobind to @zachsmith1 |
What happened?
I encountered an issue when following the init instruction to init my example gqlgen project. When I ran
go run github.com/99designs/gqlgen init
it output an error message:What did you expect?
I expect it to generate the models, resolvers. But it didn't.
Minimal graphql.schema and models to reproduce
versions
gqlgen version
?go version
?The text was updated successfully, but these errors were encountered: