Error map
NullInjectorError: No provider for HttpClient! Angular: NullInjectorError: No provider for HttpClient! — provideHttpClient() missing
Angular · layer 1, On your device
Centre: this error. First ring: errors it is linked with (9). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (9)
Angular: NullInjectorError: No provider for X!
Angular’s dependency injection couldn’t find a provider for a service/token the component needs.
Angular: NG0200: Circular dependency in DI detected for X
Two or more services inject each other (directly or through a chain), so Angular cannot create any of them first.
Angular: NG0201: No provider for X found in NodeInjector
A component or directive asked for a service no injector in its tree provides.
Angular: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer or a function used with runInInjectionContext
`inject()` was called somewhere Angular is not constructing a class — for example inside a method, a callback or after an `await`.
Angular: NullInjectorError: No provider for ActivatedRoute! (also Router) — usually a unit test
A component injects `ActivatedRoute` or `Router`, but no router providers exist in the injector — typical in unit tests or when t…
Angular: HttpErrorResponse — Http failure response for (unknown url): 0 Unknown Error (status 0)
`HttpClient` got no HTTP response at all: the request was blocked (CORS), failed at network level, or the server is unreachable —…
Angular: Http failure response for http://…/api/x: 404 Not Found (HttpErrorResponse)
The API answered 404 — the URL is wrong (base URL, path or id), or the proxy/rewrite does not forward the request.
Angular: Http failure during parsing for http://…: SyntaxError: Unexpected token '<' (response is not JSON)
The request succeeded (status 200) but the body could not be parsed as the expected type — usually HTML or plain text instead of…
RxJS: TypeError: You provided 'undefined' where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.
An RxJS operator (`switchMap`, `mergeMap`, `forkJoin`, `subscribe`) received `undefined` — a function forgot to `return` an Obser…
Two steps away (19)
InvalidOperationException: Unable to resolve service for type 'X' while attempting to activate 'Y'
ASP.NET Core’s dependency injection container can’t build Y because one of its constructor dependencies (X) was never registered.
UnsatisfiedDependencyException / NoSuchBeanDefinitionException: No qualifying bean of type 'X' available
Spring couldn’t find (or choose) a bean to inject.
The dependencies of some of the beans in the application context form a cycle
Two or more Spring beans depend on each other through constructors, and Spring Boot 2.6+ forbids cycles by default.
Angular build: Error: bundle initial exceeded maximum budget. Budget 1.00 MB was not met by 120.00 kB with a total of 1.12 MB
The production build is larger than the size limits (budgets) in angular.json, and the build is configured to fail.
Angular CLI: Schema validation failed with the following errors: Data path "" must NOT have additional properties(xyz)
`angular.json` (or an option you passed to a builder) contains a property the schema does not allow — a typo, an option removed i…
Angular: NG0600: Writing to signals is not allowed in a computed or an effect by default
A `computed()` (or, by default, an `effect()`) tried to call `.set()` or `.update()` on a signal — that creates hidden update loo…
Angular: NG0950: Input is required but no value is available yet (input.required / viewChild.required)
A required signal input or query was read before Angular set it — in the constructor or too early in the lifecycle.
Angular: NG04002: Cannot match any routes. URL Segment: 'x'
The router found no route for the URL you navigated to — missing route, wrong path, or an unloaded lazy route.
Angular: NG04014: Invalid configuration of route 'x': one of the following must be provided: component, loadComponent, redirectTo, children or loadChildren
A route object has a path but nothing for the router to render or load.
Angular (production): Cannot GET /dashboard — 404 when refreshing or opening a deep link
The web server only knows `index.html`; a direct request to `/dashboard` is not a file, so it returns 404 instead of letting Angu…
TypeError: Failed to fetch / NetworkError when attempting to fetch resource
The browser couldn’t complete the request at the network level — CORS, DNS, offline, blocked mixed content, or the server refused…
CORS Error: No 'Access-Control-Allow-Origin' header is present
The browser blocked a cross-origin request because the server’s response didn’t include the CORS headers allowing your site’s ori…
Angular CLI: [HPM] Error occurred while proxying request localhost:4200 to http://localhost:3000 [ECONNREFUSED]
The `ng serve` dev proxy cannot forward your API call — it was not enabled, the path does not match, or the target server is down.
HTTP 404 Not Found
The server can’t find anything at the requested URL.
SyntaxError: Unexpected token '<' (HTML served instead of JavaScript)
The browser loaded a .js file but received HTML (an error page or the SPA index.html).
API Error: Malformed JSON in request body (entity.parse.failed / JSON parse error)
The server couldn’t parse the request body as JSON, so it rejected the request before looking at any field.
TypeError: Cannot read properties of undefined (reading 'length')
Code checked .length on something that is undefined — typically an array or string that hasn’t loaded.
Angular: Error: Cannot find control with name: 'email' (reactive forms)
A `formControlName` points at a control that does not exist in the bound `FormGroup`.
Angular: NG02100: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'
The `async` pipe received a plain object or array instead of an Observable or Promise.
Map another error
Popular: 4035004000xC000007BTypeErrorCritical error404NullPointerException