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?
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