Skip to content
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

ngx-grpc client service throwing error #102

Open
vamsideepak opened this issue May 30, 2023 · 1 comment
Open

ngx-grpc client service throwing error #102

vamsideepak opened this issue May 30, 2023 · 1 comment

Comments

@vamsideepak
Copy link

vamsideepak commented May 30, 2023

I have integrated the @ngx-grpc in my angular application but after compilation it is throwing the below error.

./src/app/services/grpc.service.ts:6:26-41 - Error: export 'MyServiceClient' (imported as 'MyServiceClient') was not found in '../../../src/app/protos/my-service_grpc_pb' (possible exports: mypackage.MyService)

Error: src/app/services/grpc.service.ts:14:65 - error TS2345: Argument of type 'null' is not assignable to parameter of type 'ChannelCredentials'.


14     this.client = new MyServiceClient('hhtp://localhost:50051', null, null);

Below is the my repository.
https://github.com/vamsideepak/grpcClientAngular

@vamsideepak
Copy link
Author

./src/app/services/grpc.service.ts:6:26-41 - Error: export 'MyServiceClient' (imported as 'MyServiceClient') was not found in '../../../src/app/protos/my-service_grpc_pb' (possible exports: mypackage.MyService)

This has been resolved when import like import { MyServiceClient } from './../protos/my-service_grpc_pb.d';
but second issue is not resolved as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant