-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Broken ng update for Angular 8 (would install 9.0.0.next-2) #15342
Comments
Duplicate of #14980 |
Still not solved. Any idea on a fix? Really breaking workflows here. |
Same problem here. I'm trying to upgrade from Angular 7 to 8. Let alone the problem with
Then when i run
Definitely not what was expected, this is quite bad... since i'm just following the official documentation: https://update.angular.io/#7.0:8.0 |
Why is this ticket closed? Now even the other one here #14980 is locked. This is not very helpful... 😒 |
@clydin please can you give us an update on this? |
same probleme here when i run ng update as mentioned below
i got '9.0.0-next.3' |
Why is the ticket closed? |
The ticket is closed as a duplicate of #14980 which is still not resolved -- but too heated so closed. No news since. @mgechev @clydin Do you have any news to share regarding this issue? As you know, it has been raised 2 months ago now, and is breaking the whole update process for many people at least. Can you perhaps provide a temporary workaround to update by hand if it's easier? When you are not inside the Angular project team, it is not trivial to know which In the current state, update.angular.io gives non-working instructions. So for example I cannot update one of my projects that is still in v7. I'm sure v9 asks for all your attention, please let us know if there is something we can do to help get update-process back again. |
The first ticket has been opened 2 months ago (!), still nothing about it and the reference ticket is now closed because "too heated"? I don't want to be mean, but this is not very serious. There might be a reason it becomes too heated seen nothing happens and new people continue to raise the problem... End-users are not supposed to spend time on github looking for this. The bare minimum would be to put a notice and give the workaround in the official documentation: https://update.angular.io/#7.2:8.0 (step : It turns out the unwanted upgrade 8.2.x -> 9.0.0-next.x also patches many sources files to Angular 9 (!) but -by chance (?)- this does not seem to have any effect. So it seems enough to just patch the |
Can we instead just update
as a work around? That won't run the migration to 9 |
Finally found a workaround:
(you can probably drop And then update by hand to So it seems the issue is located in the Angular Material repo. |
I know this issue is "closed" as a duplicate - of a locked issue, but this problem STILL exists, even with the latest CLI. ng update now updates all the way to 9.0.0-next.7. As @virgile-hogman said, changes to the package.json file can be reverted/downgraded, but any migrations that touch files for V9 are harder to find and undo. |
I'm not sure this is enough, because |
For me it works in two steps.
Instead of update all together or one by one. |
You will get the upgrade patches from 7 -> 8 fine with I suspect
Totally with you. That's pretty sad all in all. |
In addition to emojis, I'd like to confirm that @tristanlins solution worked for me, and provide my exact process, initial and intermediary states in case it helps anyone; it does not require manually fiddling with Process
My initial state
When updating @angular/cli @angular/core rxjs
ℹ️ Recall that you need a clean working copy to run When updating @angular/cdk @angular/material
My final state
/cc #14980 |
Well now i've already done it but i don't really see what differs here from:
...and this what i did following the https://update.angular.io/#7.0:8.0 + checking material
I don't see the reasoning of the supposedly new (??) solutions here. The order is exactly the same... and i don't think |
A rationale behind the solution would also help to understand. In first hand, did you first reproduce the original problem with the official update instructions (which already consists in two steps)? |
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. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, it worked in previous versions.
Description
Here is my
ng update
:🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: