Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

v0.16 generating core failed: unable to load gqlgen-test/graph/model - make sure you're using an import path to a package that exists #1999

Closed
abankspdx opened this issue Feb 25, 2022 · 0 comments

Comments

@abankspdx
Copy link

What happened?

I followed the "getting started" directions in the README/on the website. I got:

➜  gqlgen-test go run github.com/99designs/gqlgen init
Creating gqlgen.yml
Creating graph/schema.graphqls
Creating server.go
Generating...
reloading module info
generating core failed: unable to load gqlgen-test/graph/model - make sure you're using an import path to a package that exists

Exec "go run ./server.go" to start GraphQL server

What did you expect?

server.go to be generated

Minimal graphql.schema and models to reproduce

I didn't provide one.

versions

  • gqlgen version? v0.16
  • go version? ``go version go1.16.6 darwin/amd64`
  • dep or go modules? modules

Also I tried my best to follow the info from: #1860, but it seems like init is the only way to generate server.go, and so updating the gqlgen.yml to remove the autobind lines didn't fix the problem. It seems like init generates server.go, and I can't rerun init if I already have a gqlgen.yml? Not really sure how to proceed. Never used this tool before.

@frederikhors frederikhors converted this issue into discussion #2000 Feb 25, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant