Error map

Could not find the builder's node package Angular CLI: Could not find the '@angular-devkit/build-angular:browser' builder's node package / Cannot find module '@angular-devkit/build-angular/package.json'

Angular · layer 1, On your device

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). 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.

Could not find the builder's node package — Angular CLI: Could not find the '@angular-devkit/build-angular:browser' builder's node package / Cannot find module '@angular-devkit/build-angular/package.json' (Angular)Could not f…Node.js version detected. The Angular CLI requires a minimum — Angular CLI: Node.js version v16.20.2 detected. The Angular CLI requires a minimum Node.js version of v18.19.1 (Angular)Node.js version det…ENOENT — npm ERR! enoent ENOENT: no such file or directory, open '/path/package.json' (npm)ENOENTKarma Disconnected / no captured browser — Angular tests: Disconnected, because no message in 30000 ms. / ERROR [launcher]: Cannot start ChromeHeadless (Angular)Karma Disconnected …Repository is not clean — Angular CLI: Repository is not clean. Please commit or stash any changes before updating. (Angular)Repository is not c…NG04014 — Angular: NG04014: Invalid configuration of route 'x': one of the following must be provided: component, loadComponent, redirectTo, children or loadChildren (Angular)NG04014Schema validation failed with the following errors — Angular CLI: Schema validation failed with the following errors: Data path "" must NOT have additional properties(xyz) (Angular)Schema validation f…ng: command not found — Angular CLI: zsh: command not found: ng / 'ng' is not recognized as an internal or external command (Angular)ng: command not fou…Can't find stylesheet to import — Angular (Sass): Error: Can't find stylesheet to import. @import 'variables'; (Angular)Can't find styleshe…NG0950 — Angular: NG0950: Input is required but no value is available yet (input.required / viewChild.required) (Angular)NG0950NG0300 — Angular: NG0300: Multiple components match node with tagname app-x: A and B (Angular)NG0300EmptyError — RxJS: EmptyError: no elements in sequence (firstValueFrom / lastValueFrom on an empty Observable) (Angular)EmptyErrorexceeded maximum budget — 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 (Angular)exceeded maximum bu…EBADENGINE — npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module (Node.js)EBADENGINEPort 4200 is already in use — Angular CLI: Port 4200 is already in use. Use '--port' to specify a different port (Angular)Port 4200 is alread…ERESOLVE peer dependency conflict after ng update — Angular: npm ERR! ERESOLVE could not resolve — Conflicting peer dependency: @angular/core@"^16.0.0" (after ng update / ng add) (Angular)ERESOLVE peer depen…not a git repository — fatal: not a git repository (or any of the parent directories): .git (Git)not a git repositoryENOENT — Error: ENOENT: no such file or directory (Node.js)ENOENTpathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…Cannot find control with name — Angular: Error: Cannot find control with name: 'email' (reactive forms) (Angular)Cannot find control…NullInjectorError: No provider for ActivatedRoute! — Angular: NullInjectorError: No provider for ActivatedRoute! (also Router) — usually a unit test (Angular)NullInjectorError: …Component is not resolved: templateUrl — Angular tests: Component 'X' is not resolved: templateUrl: ./x.component.html — Did you run and wait for 'resolveComponentResources()'? (Angular)Component is not re…NG04002 — Angular: NG04002: Cannot match any routes. URL Segment: 'x' (Angular)NG04002Cannot GET /route on refresh — Angular (production): Cannot GET /dashboard — 404 when refreshing or opening a deep link (Angular)Cannot GET /route o…NG0200 — Angular: NG0200: Circular dependency in DI detected for X (Angular)NG0200NG0201 — Angular: NG0201: No provider for X found in NodeInjector (Angular)NG0201NG0203 — 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 (Angular)NG0203command not found — bash: command not found (Linux)command not foundThe Angular Compiler requires TypeScript — Angular: Error: The Angular Compiler requires TypeScript >=5.4.0 and <5.6.0 but 5.7.2 was found instead (Angular)The Angular Compile…Vite failed to resolve import — [vite] Internal server error: Failed to resolve import "x" from "src/App.jsx". Does the file exist? (React)Vite failed to reso…Module parse failed — Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type (React)Module parse failedNG0912 — Angular: NG0912: Component ID generation collision detected. Components 'A' and 'B' with selector 'app-x' use the same ID (Angular)NG0912NG0600 — Angular: NG0600: Writing to signals is not allowed in a computed or an effect by default (Angular)NG0600ViewChild is undefined — Angular: TypeError: Cannot read properties of undefined (reading 'nativeElement') — @ViewChild used in ngOnInit (Angular)ViewChild is undefi…NG8001 — Angular: NG8001: 'app-item' is not a known element — verify that it is included in the component's imports (Angular)NG8001NG6008 — Angular: NG6008: Component X is standalone, and cannot be declared in an NgModule. Did you mean to import it instead? (Angular)NG6008UnhandledPromiseRejection — Node.js: [UnhandledPromiseRejection] — This error originated either by throwing inside of an async function without a catch block (Node.js)UnhandledPromiseRej…NG02100 — Angular: NG02100: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe' (Angular)NG02100You provided 'undefined' where a stream was expected — RxJS: TypeError: You provided 'undefined' where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable. (Angular)You provided 'undef…ChunkLoadError — ChunkLoadError: Loading chunk 123 failed. (JavaScript)ChunkLoadErrorNG0500 — Angular SSR: NG0500: During hydration Angular expected <div> but found <span> (NG0501, NG0502) (Angular)NG0500NG0955 — Angular: NG0955: The provided track expression resulted in duplicated keys for a given collection (@for) (Angular)NG0955

Directly related (12)

Node.js version detected. The Angular CLI requires a minimumAngular

Angular CLI: Node.js version v16.20.2 detected. The Angular CLI requires a minimum Node.js version of v18.19.1

Your Node.js is older (or newer, unsupported) than the Angular CLI version needs.

ENOENTnpm

npm ERR! enoent ENOENT: no such file or directory, open '/path/package.json'

npm ran in a directory without a package.json.

Karma Disconnected / no captured browserAngular

Angular tests: Disconnected, because no message in 30000 ms. / ERROR [launcher]: Cannot start ChromeHeadless

`ng test` could not start or keep the browser Karma uses — Chrome is missing, runs as root in a container, or the test run hung.

Repository is not cleanAngular

Angular CLI: Repository is not clean. Please commit or stash any changes before updating.

`ng update` refuses to run because git has uncommitted changes; it wants every migration to be a reviewable diff.

NG04014Angular

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.

Schema validation failed with the following errorsAngular

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…

ng: command not foundAngular

Angular CLI: zsh: command not found: ng / 'ng' is not recognized as an internal or external command

The Angular CLI is not installed globally or its folder is not on your PATH.

Can't find stylesheet to importAngular

Angular (Sass): Error: Can't find stylesheet to import. @import 'variables';

A Sass `@import` / `@use` cannot resolve its path — wrong relative path, missing underscore partial, or the include path is not c…

NG0950Angular

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.

NG0300Angular

Angular: NG0300: Multiple components match node with tagname app-x: A and B

Two components in scope share the same selector, so Angular cannot decide which one renders for that tag.

EmptyErrorAngular

RxJS: EmptyError: no elements in sequence (firstValueFrom / lastValueFrom on an empty Observable)

`firstValueFrom`, `lastValueFrom`, `first()` or `last()` waited for a value but the Observable completed without emitting.

exceeded maximum budgetAngular

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.

Two steps away (29)

EBADENGINENode.js

npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module

A package requires a different Node.js version than the one you’re running.

Port 4200 is already in useAngular

Angular CLI: Port 4200 is already in use. Use '--port' to specify a different port

Another process is already listening on the dev-server port, often an earlier `ng serve` that was not stopped.

ERESOLVE peer dependency conflict after ng updateAngular

Angular: npm ERR! ERESOLVE could not resolve — Conflicting peer dependency: @angular/core@"^16.0.0" (after ng update / ng add)

A package in your project requires an older Angular version than the one you are installing, so npm refuses the upgrade.

not a git repositoryGit

fatal: not a git repository (or any of the parent directories): .git

You ran a Git command outside a Git working tree.

ENOENTNode.js

Error: ENOENT: no such file or directory

A file or directory the program tried to open doesn’t exist at that path.

pathspec did not matchGit

error: pathspec 'x' did not match any file(s) known to git

Git couldn’t find the file or branch name you referenced.

Cannot find control with nameAngular

Angular: Error: Cannot find control with name: 'email' (reactive forms)

A `formControlName` points at a control that does not exist in the bound `FormGroup`.

NullInjectorError: No provider for ActivatedRoute!Angular

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…

Component is not resolved: templateUrlAngular

Angular tests: Component 'X' is not resolved: templateUrl: ./x.component.html — Did you run and wait for 'resolveComponentResources()'?

A test created a component whose external template was not compiled yet — `compileComponents()` was not called/awaited, or the te…

NG04002Angular

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.

Cannot GET /route on refreshAngular

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…

NG0200Angular

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.

NG0201Angular

Angular: NG0201: No provider for X found in NodeInjector

A component or directive asked for a service no injector in its tree provides.

NG0203Angular

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`.

command not foundLinux

bash: command not found

The shell can’t find an executable with that name in any directory on your PATH.

The Angular Compiler requires TypeScriptAngular

Angular: Error: The Angular Compiler requires TypeScript >=5.4.0 and <5.6.0 but 5.7.2 was found instead

The installed TypeScript version is outside the range your Angular version supports.

Vite failed to resolve importReact

[vite] Internal server error: Failed to resolve import "x" from "src/App.jsx". Does the file exist?

Vite couldn’t find an imported file or package.

Module parse failedReact

Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type

Webpack found syntax it can’t parse because no loader is configured for that file (JSX, TypeScript, CSS, or modern syntax in node…

NG0912Angular

Angular: NG0912: Component ID generation collision detected. Components 'A' and 'B' with selector 'app-x' use the same ID

Angular generated the same internal id for two different components — usually two components with the same selector, template and…

NG0600Angular

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…

ViewChild is undefinedAngular

Angular: TypeError: Cannot read properties of undefined (reading 'nativeElement') — @ViewChild used in ngOnInit

A `@ViewChild` / `viewChild()` reference is `undefined` because the view is not created yet, or the element sits inside `@if` / `…

NG8001Angular

Angular: NG8001: 'app-item' is not a known element — verify that it is included in the component's imports

The template uses a tag Angular does not recognise as a component — it was never imported (standalone) or declared/exported (NgMo…

NG6008Angular

Angular: NG6008: Component X is standalone, and cannot be declared in an NgModule. Did you mean to import it instead?

A standalone component, directive or pipe was listed in an NgModule's `declarations` array.

UnhandledPromiseRejectionNode.js

Node.js: [UnhandledPromiseRejection] — This error originated either by throwing inside of an async function without a catch block

A promise rejected and nothing handled it; since Node 15 this crashes the process.

NG02100Angular

Angular: NG02100: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'

The `async` pipe received a plain object or array instead of an Observable or Promise.

You provided 'undefined' where a stream was expectedAngular

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…

ChunkLoadErrorJavaScript

ChunkLoadError: Loading chunk 123 failed.

A lazily loaded JavaScript chunk couldn’t be downloaded — usually because a new deployment removed the old hashed files.

NG0500Angular

Angular SSR: NG0500: During hydration Angular expected <div> but found <span> (NG0501, NG0502)

The HTML rendered on the server does not match what the browser's Angular app tried to render, so hydration failed and the page w…

NG0955Angular

Angular: NG0955: The provided track expression resulted in duplicated keys for a given collection (@for)

In an `@for` block (or `trackBy`), two items produced the same tracking key, so Angular cannot match them to DOM nodes reliably.