Gqlgen: WrapErrorWithInputPath

Created on 15 Aug 2020  路  3Comments  路  Source: 99designs/gqlgen

$ gqlgen

$ error: WrapErrorWithInputPath not declared by package graphql

Most helpful comment

Sounds like you have a different gqlgen command version from the library version.

We no longer recommend not installing gqlgen as a command, but instead using the same version pinned in your go.mod file via:

go run github.com/99designs/gqlgen

All 3 comments

I have met the same error

Sounds like you have a different gqlgen command version from the library version.

We no longer recommend not installing gqlgen as a command, but instead using the same version pinned in your go.mod file via:

go run github.com/99designs/gqlgen

Had the same issue. Turns out I was using an older version of gqlgen which I installed with go install github.com/99designs/gqlgen. So when you get this error either update the installed version by doing another go install, or (better) use the solution provided by @lwc above.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cemremengu picture cemremengu  路  3Comments

cajax picture cajax  路  4Comments

ksoda picture ksoda  路  3Comments

bjm88 picture bjm88  路  4Comments

sumanthakannantha picture sumanthakannantha  路  3Comments