-
Notifications
You must be signed in to change notification settings - Fork 64
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
Error: cannot use config.PackageConfig{...} (type config.PackageConfig) as type config.ExecConfig in field value #92
Comments
Same here. |
please try v0.0.3! if get same error, tell me it |
Hi @Yamashou, I've tried v0.0.3 and get this error: `go run github.com/Yamashou/gqlgenc goroutine 1 [running]: This version v0.0.2-gql is working for me. Hope you can see the issue in v0.0.3! |
I also get the following error on v0.0.3, same as @diep-it-dn panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x83e193]
goroutine 1 [running]:
github.com/Yamashou/gqlgenc/clientgen.RenderTemplate(0xc0000dc900, 0xc00084f1a0, 0xc00084f340, {0xd07b78, 0x0, 0x0}, {0xc000011818, 0x1, 0x1}, {0xc0000117f0, ...}, ...)
/home/arranhs/go/pkg/mod/github.com/!yamashou/gqlgenc@v0.0.3/clientgen/template.go:22 +0x313
github.com/Yamashou/gqlgenc/clientgen.(*Plugin).MutateConfig(0xc00007ebc0, 0xc0000dc900)
/home/arranhs/go/pkg/mod/github.com/!yamashou/gqlgenc@v0.0.3/clientgen/client.go:80 +0x5f9
github.com/Yamashou/gqlgenc/generator.Generate({0x9cddb0, 0xc0000240b8}, 0xc0000c8630, {0xc0000e7f28, 0x1, 0x6})
/home/arranhs/go/pkg/mod/github.com/!yamashou/gqlgenc@v0.0.3/generator/generater.go:52 +0x2e5
main.main()
/home/arranhs/go/pkg/mod/github.com/!yamashou/gqlgenc@v0.0.3/main.go:30 +0x3ab v0.0.2 is giving me the same error as in the OP ../../../go/pkg/mod/github.com/!yamashou/gqlgenc@v0.0.2/config/config.go:203:3: cannot use config.PackageConfig{...} (type config.PackageConfig) as type config.ExecConfig in field value Currently using Thanks for the help! |
@diep-it-dn And if you can do v2 client, please change v2 client. (watch an example) |
This error occured in the latest version: v0.0.2:
../../../../go/pkg/mod/github.com/!yamashou/gqlgenc@v0.0.2/config/config.go:203:3: cannot use config.PackageConfig{...} (type config.PackageConfig) as type config.ExecConfig in field value
The text was updated successfully, but these errors were encountered: