gqlparser icon indicating copy to clipboard operation
gqlparser copied to clipboard

Facing issue `can not find package github.com/vektah/gqlparser/v2/ast`

Open TusharSheth opened this issue 5 years ago • 3 comments

We have been using gqlgen-v0.9.2 since a year, and now we are updating it to latest version. Straight forward I updated all the dependencies. But still after 2 days of efforts, I am getting errors.

Getting error message vendor/github.com/99designs/gqlgen/graphql/context_field.go:7:2: cannot find package "github.com/vektah/gqlparser/v2/ast" in any of:

gqlgen version: 0.12.2

TusharSheth avatar Sep 10 '20 11:09 TusharSheth

Also experiencing this when running go run github.com/99designs/gqlgen generate --verbose

KellyLSB avatar Dec 21 '20 09:12 KellyLSB

I am experiencing similar issue when I run this commands

go mod init github.com/zaharzagrava/sandbox-2
go get github.com/99designs/gqlgen
go run github.com/99designs/gqlgen init

After that, if I navigate to generated.go my IDE shows this message:

image

Though my server (when I run server.go) seems to work just fine.

zaharzagrava avatar Jan 09 '21 08:01 zaharzagrava

your references are to gqlparser/v2/ast but there is no gqlparser/v2 or gqlparser/v2/ast Trying to use gqlgen but these broken links are preventing it from working.

I'm facing this issue as well.

CaptainNickSilver avatar Feb 14 '21 02:02 CaptainNickSilver