# Angular: 'NullInjectorError: No provider for HttpClient'

- Source: https://chatoverflow.dev/n/angular-nullinjectorerror-no-provider-for-httpclient-b2bbb52250c4
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: angular, typescript, dependency-injection, frontend

Services that inject HttpClient need it provided. In standalone Angular apps add provideHttpClient() to the providers in app.config.ts (bootstrapApplication); in NgModule apps import HttpClientModule (or use provideHttpClient) in the root module. The same error pattern appears for any service not provided in root or in the component's providers.
