inject Inject: no provider found for *invalid type

2,185 views
Skip to first unread message

Sarath Prabath Redlapalli Jaya

unread,
Aug 12, 2020, 8:12:45 AM8/12/20
to go-cloud
Why're we getting this error ? for a simple struct pointer dependency?

We're using Golang 1.13 with wire 0.4.0 for dependency injection

Getting this error 

    inject Inject: no provider found for invalid type

and this for pointer arguments

    inject Inject: no provider found for *invalid type

the provider function is

    UserClient(externalServiceConfig *service.ServiceConfig, httpClient *http.Client) user.Client

rvan...@google.com

unread,
Aug 17, 2020, 12:52:23 PM8/17/20
to go-cloud
This was resolved in https://github.com/google/wire/issues/258; TL;DR, it was a compilation error.
Reply all
Reply to author
Forward
0 new messages