-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Bug Report or Feature Request (mark with an x
)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Versions
node 8.10.0
npm 6.2.0
Windows 10
Angular CLI: 6.0.5
Node: 8.10.0
OS: win32 x64
Angular: 6.0.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.6.5
@angular-devkit/build-angular 0.6.5
@angular-devkit/build-optimizer 0.6.5
@angular-devkit/core 0.6.5
@angular-devkit/schematics 0.6.5
@angular/cli 6.0.5
@ngtools/webpack 6.0.5
@schematics/angular 0.6.5
@schematics/update 0.6.5
rxjs 6.2.0
typescript 2.7.2
webpack 4.8.3
Repro steps
ng update @angular/core @angular/cli --next
Sample repo:
https://github.com/DeborahK/Angular-NgRx-GettingStarted/tree/master/APM-Demo4
When I run the ng update
command against this repo, I get the error indicated in the log below and the ng update
does not run.
The log given by the failure
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.2", would install "2.7.2")
Incompatible peer dependencies found. See above.
Desired functionality
Should successfully run ng update
Mention any other details that might be useful
The package-lock.json file for this version includes the following:
"@schematics/angular": {
"version": "0.6.5",
"resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-0.6.5.tgz",
"integrity": "sha512-oB9j+IqVtoSn3kEV6mnBslG8pxaOlUW2Kw7aCVf9DzEqTZEH5awKuPuhRkAVyiXdwHPDn21xoUGVRLy4y/BafA==",
"dev": true,
"requires": {
"@angular-devkit/core": "0.6.5",
"@angular-devkit/schematics": "0.6.5",
"typescript": ">=2.6.2 <2.8"
}
},
If I manually change the typescript
line to this:
"typescript": ">=2.6.2 <2.10"
It executes ng update
as expected.