Skip to content
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

Second attempt at ng16 upgrade #51

Conversation

bjorn-einar-bjartnes-4ss
Copy link
Contributor

@bjorn-einar-bjartnes-4ss bjorn-einar-bjartnes-4ss commented Aug 4, 2023

Tried a different way to upgrade using ng update. Still does not work, but likely a better way to get dependencies correct.
Commands are in individual commits, but I ran these

ng update @angular/animations@15 @angular/cdk@15 @angular/common@15 @angular/compiler@15 @angular/core@15 @angular/forms@15 @angular/material@15 @angular/platform-browser@15 @angular/platform-browser-dynamic@15 @angular/router@15

 ng update @angular/animations@16 @angular/cdk@16 @angular/common@16 @angular/compiler@16 @angular/core@16 @angular/forms@16 @angular/material@16 @angular/platform-browser@16 @angular/platform-browser-dynamic@16 @angular/router@16 @angular/compiler-cli@16 @angular/language-service@16 @angular-devkit/build-angular@16

Realized later that I had forgot ng update @angular/cli@15 and ng update @angular/cli@16 so did that in a separate commit.

ng update @angular/animations@15 @angular/cdk@15 @angular/common@15 @angular/compiler@15 @angular/core@15 @angular/forms@15 @angular/material@15 @angular/platform-browser@15 @angular/platform-browser-dynamic@15 @angular/router@15
 ng update @angular/animations@16 @angular/cdk@16 @angular/common@16 @angular/compiler@16 @angular/core@16 @angular/forms@16 @angular/material@16 @angular/platform-browser@16 @angular/platform-browser-dynamic@16 @angular/router@16 @angular/compiler-cli@16 @angular/language-service@16 @angular-devkit/build-angular@16
@vercel
Copy link

vercel bot commented Aug 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ng7-dynamic-breadcrumb ❌ Failed (Inspect) Aug 4, 2023 0:40am

@@ -4,7 +4,7 @@ import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatListModule } from '@angular/material/list';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added by migration script when running ng update

@@ -63,7 +63,7 @@ const routes: Routes = [
];

@NgModule({
imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added by migration script when running ng update

@bjorn-einar-bjartnes-4ss
Copy link
Contributor Author

By building invidiual components, all four , using ng build I was able to run ng test but it claims some errors, while also being green
image

@bjorn-einar-bjartnes-4ss
Copy link
Contributor Author

We rewrote our components, I have no further interest in pursuing this stale PR so closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant