99designs / gqlgen

go generate based graphql server library
https://gqlgen.com
MIT License
9.96k stars 1.17k forks source link

internal error : without types was imported from #1675

Open nzlov opened 3 years ago

nzlov commented 3 years ago

What happened?

gqlgen  --verbose
internal error: package "github.com/vektah/gqlparser/v2/ast" without types was imported from "github.com/99designs/gqlgen/graphql/introspection"

What did you expect?

gqlgen work

Minimal graphql.schema and models to reproduce

demo

versions

nzlov commented 3 years ago

go1.8-dev need update x/tools https://github.com/golang/go/issues/49164#issuecomment-952033658

wilhelmeek commented 3 years ago

Since this (seemingly) is a bug with the a devel build of Go, I would recommend using 1.17 as that's the most recent version officially supported by gqlgen.