An unhandled exception occurred: Job name "..getProjectMetadata" does not exist
Solution 1:
It seems to be a problem with @angular-devkit/build-angular.
Try updating it by running
npm i @angular-devkit/build-angular
Or downgrading it by specifying a previous version, such as
npm i @angular-devkit/[email protected]
Solution 2:
I had this error after npm audit
found vulnerabilities in the version of @angular-devkit/build-angular
that I was using. I ran npm audit fix
which updated it to 0.900.2
, but when I ran ng serve
it gave the error quoted in the question.
I resolved it by downgrading to version 0.803.25
. This was the highest version I could find which did not cause any errors when running ng serve
. The vulnerabilities found by npm audit
are resolved in this version.
This is the command I ran:
npm i @angular-devkit/[email protected]
Solution 3:
I had just created a new project and got this error. Since I had no legacy code I needed to work with and wanted to use the latest (9.0) version of Angular, I ran this command:
ng update @angular/cli @angular/core
and it fixed everything.