-
Notifications
You must be signed in to change notification settings - Fork 12k
ng update @angular/core fails with error message Invalid range: ">=4.3.0||>5.0.0" #10683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Dup of #10621 |
Closing this as it's a dupe of #10621. |
Hey,
Please respond and share! Thanks |
I had a similar one with message |
@Rumsha001 your solution really helped me get up-to-date with the latest angular version. One thing I had to do different was step 6 (install typescript 2.7.2) before I could update @angular/core. and I am not using angular material so I skipped that one. I did this:
result:
Thank you! |
Rick Strahl also describes a method on his blog that seems to work: https://weblog.west-wind.com/posts/2018/May/09/Updating-my-AlbumViewer-to-ASPNET-Core-21-and-Angular-60 This is what he said: The proper order to do the upgrade is:
|
@robbaman that actually worked for me |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
I have a pretty simple Angular 5.2 (CLI 1.7.4) project
ng update @angular/core
I get an error.Observed behavior
I get an error message:
Desired behavior
I'd expect the framework package to be updated
Mention any other details that might be useful (optional)
It'd be great if there at least was some some information or logging on what is going on.
When using the
--force
flag the error remains but is then accompanied with the following warning:Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=2.7.2 <2.8", would install "2.5.3")
The text was updated successfully, but these errors were encountered: