问题
When I start to run my Application, I get this error:
**[error] Error: Job name "..getProjectMetadata" does not exist.**
at Observable._subscribe (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/src/experimental/jobs/simple-scheduler.js:350:23)
at Observable._trySubscribe (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Observable.js:44:25)
at Observable.subscribe (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Observable.js:30:22)
at /Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/util/subscribeTo.js:22:31
at Object.subscribeToResult (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/util/subscribeToResult.js:10:45)
at SwitchMapSubscriber._innerSub (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/switchMap.js:65:54)
at SwitchMapSubscriber._next (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/switchMap.js:55:14)
at SwitchMapSubscriber.Subscriber.next (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:66:18)
at SwitchMapSubscriber.notifyNext (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/switchMap.js:86:26)
at InnerSubscriber._next (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:66:18)
at /Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/util/subscribeTo.js:17:28
at Object.subscribeToResult (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/util/subscribeToResult.js:10:45)
at SwitchMapSubscriber._innerSub (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/switchMap.js:65:54)
at SwitchMapSubscriber._next (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/switchMap.js:55:14)
at SwitchMapSubscriber.Subscriber.next (/Users/vasil/KSS/kssfrontend/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:66:18)
I have these versions:
Angular CLI: 8.3.19
,
Node: 12.14.0
.
Any Idea what causes this problem?
回答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/build-angular@0.803.24
回答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/build-angular@0.803.25
回答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.
回答4:
I had the same problem, and I solved it with installing previous/old version "0.803.24" in this exemple using this command:
npm i @angular-devkit/build-angular@0.803.24
回答5:
For IONIC 5 the following downgrades worked for me.
npm i @angular-devkit/build-angular@0.803.25
npm i @angular-devkit/build-angular@0.803.24
Other versions has a high vulnerability warning and risks
回答6:
update @angular-devkit/build-angular version .
回答7:
I had the same issue. Running "npm audit fix" caused it, as it has found some vulnerabilities in "@angular-devkit/build-angular": "^0.803.26", upgraded it to "^0.901.8" which means there's version mismatch, because every other angular package stayed at version 8.x. You should upgrade/downgrade your packages.
If your intent was not to upgrade Angular, you should consider downgrading some packages.
回答8:
Downgrading to npm i @angular-devkit/build-angular@0.803.24 this version helped me!
回答9:
Try build-angular version 0.803.24 usng commad: npm i @angular-devkit/build-angular@0.803.24
回答10:
Try the following command hopefully, it will be solved
npm i @angular-devkit/build-angular@0.803.24
回答11:
if npm audit gives you an error. downgrading version will solve it. upgrading version did not work for me
npm i @angular-devkit/build-angular@0.803.25
回答12:
npm i @angular-devkit/build-angular@0.803.24
This solution worked for me. So much for NPM AUDIT FIX. 3 hours of my life I can't get back. :( Next time, I will do the painful line by line updates with verification.
回答13:
it happened the same to me after running npm audit
.
In my case, the solution was also downgrading: npm i @angular-devkit/build-angular@0.803.24
Thanks for your help.
回答14:
I've got same issue but this downgrade helped
npm i @angular-devkit/build-angular@0.803.25
Working well for Ionic 6.9.3
回答15:
In Ionic 5, I had the same issue. As many here said, I solved downgrading the @angular-devkit/build-angular
dependency on package.json
to the same version I used in packaje-lock.json
for @angular-devkit
dependencies. That looks like it was the problem.
回答16:
Try deleting package-lock.json
and reinstalling node_modules
回答17:
Simply update or either downgrade angulardevkit so that ng serve work npm i @angular-devkit/build-angular@0.803.24 if this not work then update @angular-devkit/build-angular version .
回答18:
I was installing ngx-quill and faced the same issue. please make sure to check the supported versions.
For example - If you are using Angular 8, make sure you are installing the supported version. In case of ngx-quill, it will be npm install ngx-quill@5.2.0
回答19:
I upgraded my ng8 project to ng9 with
ncu -u
回答20:
ng update @angular/cli @angular/core - didn't work for me; ng couldn't be found
I am new to Angular but tried
npm update @angular/cli @angular/core
npm start
It is working now
回答21:
running ng update
will tell you what you need to update.
then run the commands and you will be good to go
回答22:
This downgrade
npm i @angular-devkit/build-angular@0.803.25
Worked for me on Ionic 5.4
回答23:
Adding this answer, because could not find the solution after googling endlessly.
My project is in Ionic 5, and every time I tried to build I got this error.
This is the only solution that helped:
npm install
npm audit fix
npm i @angular-devkit/build-angular@0.803.24
npx npm-force-resolutions
npm install
来源:https://stackoverflow.com/questions/59447679/an-unhandled-exception-occurred-job-name-getprojectmetadata-does-not-exist