99designs / 99designs/gqlgen

could not import github.com/99designs/gqlgen (cannot find package "github.com/99designs/gqlgen" in GOROOT or GOPATH)

Aperta
#3,068 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
10.8k
Fork
1.3k
Merge medio
2g 36m
PR unite (30g)
26

Descrizione

### What happened?
I follow the [Quick Start](https://github.com/99designs/gqlgen?tab=readme-ov-file#quick-start) guide but keep getting this error in VS Code. Things seem to work fine (init, codegen, etc.)

Screenshot 2024-05-10 at 12 59 30 PM

I also get a linter warning that the package is not within a workspace
Screenshot 2024-05-10 at 12 59 37 PM

### What did you expect?
No VS Code errors.

### Minimal graphql.schema and models to reproduce
Not related to graphql.schema. I get the errors after step 1 and step 2 in the [Quick Start](https://github.com/99designs/gqlgen?tab=readme-ov-file#quick-start) guide.

### versions
- `go run github.com/99designs/gqlgen version`?
v0.17.46

- `go version`?
go version go1.22.2 linux/amd64

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.