ng update to v8 causes [error] Error: Job name "..getProjectMetadata" does not exist.
π Bug report
Command (mark with an x)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Description
A clear and concise description of the problem...When I run ng update @angular/cli@8 @angular/core@8, I then get an error when I run ng build
[error] Error: Job name "..getProjectMetadata" does not exist.
Details are also here https://stackoverflow.com/questions/59447679/an-unhandled-exception-occurred-job-name-getprojectmetadata-does-not-exist
I resolved this by running npm i @angular-devkit/[email protected]
I expected that updating to v8 would resolve this.
@jdhines That's surprising to her. I think seeing your package.json also will help to figure out this easily.
Should I have had the @angular-devkit/... saved in dependencies? If they should be, I don't know why they wouldn't, unless one time I installed them I just forgot to add a flag, but it's been such a long time ago I don't remember if I installed them manually during an upgrade (I started this project on Angular 4) or if they were part of ng new.
"dependencies": {
"@angular/cdk": "^8.2.3",
"@angular/material": "^8.2.3",
"@ng-bootstrap/ng-bootstrap": "^5.3.1",
"core-js": "^2.4.1",
"jqwidgets-scripts": "^5.6.0",
"lodash": "^4.17.11",
"ngx-spinner": "^8.1.0",
"rxjs": "^6.5.5",
"typescript": "^3.5.3",
"web-animations-js": "^2.3.1",
"zone.js": "^0.9.1"
},
"devDependencies": {
"@angular/animations": "^8.2.14",
"@angular/cli": "^8.3.26",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/compiler-cli": "^8.2.14",
"@angular/core": "^8.2.14",
"@angular/forms": "^8.2.14",
"@angular/language-service": "^8.2.14",
"@angular/platform-browser": "^8.2.14",
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/platform-server": "^8.2.14",
"@angular/platform-webworker": "^8.2.14",
"@angular/platform-webworker-dynamic": "^8.2.14",
"@angular/router": "^8.2.14",
"@angular/upgrade": "^8.2.14",
"@testing-library/angular": "^7.1.0",
"@testing-library/jest-dom": "^4.0.0",
"@types/jest": "^23.3.14",
"@types/lodash": "^4.14.109",
"@types/node": "~6.0.60",
"codelyzer": "^5.2.2",
"file-saver": "1.3.3",
"jest": "^24.8.0",
"jest-preset-angular": "^7.1.1",
"moment": "2.17.1",
"prettier": "^1.19.1",
"replace-in-file": "^3.4.2",
"ts-jest": "^24.0.2",
"ts-node": "~2.0.0",
"tslint": "^5.7.0",
"tslint-config-prettier": "^1.10.0",
"xlsx": "0.14.1"
}
Closing as this seems to be an issue which is caused by npm audit fix rather than Angular CLI.
See: https://github.com/angular/angular-cli/issues/16902#issuecomment-604621497
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.