You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m currently working on an Angular 17 project using standalone components and I’m trying to integrate ngx-grpc for gRPC communication. Since Angular standalone components don’t support the .forRoot() method, I’m unsure of how to properly configure the gRPC client.
I’ve followed the usual steps, but I’m facing issues when trying to manually configure the gRPC services. Here are the details:
The error I get is NullInjectorError: No provider for InjectionToken GRPC_CLIENT_FACTORY!.
I tried configuring the GrpcCoreModule and GrpcWebClientModule directly within the standalone component, but without success, since .forRoot() can’t be used in standalone components.
Could you please guide me on the correct way to manually provide the gRPC client configuration, including how to properly set up the GRPC_CLIENT_FACTORY or any other necessary services in a standalone component?
Thank you in advance for your help!
Best regards,
Michael
The text was updated successfully, but these errors were encountered:
MichaelGiger
changed the title
How to properly Integrate ngx-grpc in Angular 17 with Standalone Components
How to properly integrate ngx-grpc in Angular 17 with Standalone Components
Sep 5, 2024
Hi
I’m currently working on an Angular 17 project using standalone components and I’m trying to integrate ngx-grpc for gRPC communication. Since Angular standalone components don’t support the .forRoot() method, I’m unsure of how to properly configure the gRPC client.
I’ve followed the usual steps, but I’m facing issues when trying to manually configure the gRPC services. Here are the details:
Could you please guide me on the correct way to manually provide the gRPC client configuration, including how to properly set up the GRPC_CLIENT_FACTORY or any other necessary services in a standalone component?
Thank you in advance for your help!
Best regards,
Michael
The text was updated successfully, but these errors were encountered: