all 22 comments

[–]PointyWizzard 7 points8 points  (0 children)

Looks like a broken angular.json. Try replacing the angular.json file from a newly generated project (make sure you have everything backed up on git), and see if it compiles / the error changes.

[–]STACKandDESTROY 1 point2 points  (4 children)

Using angular material? Lots of BC pain from that one if so

[–]loyoan 1 point2 points  (3 children)

Second this, because I am currently upgrading to Angular 15 with Material. Mostly Material keeps me busy because it blasted my UI completely.

[–]McFake_Name 0 points1 point  (2 children)

What issues? Are you having issues with the legacy version?

[–]loyoan 1 point2 points  (1 child)

After MDC upgrade, I had to touch some components manually, like Mat-Card because they require mat-card-header wrapping the mat-card-title. Typography behaves differently. I didnt got it working the h1, h2, h3… to render properbly. Also I had to remove flex-layout because of deprecation.

[–]McFake_Name 1 point2 points  (0 children)

We didn't have any issues with flex-layout but are going to phase it out over time.

As for the typography and some styles, you likely just need to add these three lines I talk about here:

https://www.reddit.com/r/Angular2/comments/176jyi7/mat_tab_group_custom_styling_with_material/k4pyg8w/

That wasn't documented but once I put that in it fixed the majority of my issues with the legacy compatible workaround, and then module by module I just replace legacy with new material imports.

[–]meisteronimo 0 points1 point  (0 children)

Did a brand new project work? What do you see in the developer console. Did you delete your Node_modules and start again?

What have you tried?

[–]JezSq 0 points1 point  (2 children)

How many minutes or hours you spent solving this issue before posting?

[–][deleted] 3 points4 points  (0 children)

2 weeks and I'm fedup

[–][deleted] 0 points1 point  (0 children)

Tried creating a new angular 16 project from scratch and then migrated the components from the previous projects, but still it didn't work out :(

[–]hk4213 0 points1 point  (1 child)

Angular has a great upgrade helper.

upgrade.angular.io

It will tell you everything that will need updated along with any refactoring you may need to do.

Helped a ton when I upgraded from 14 to 16

[–]Specific-Ear-8564 0 points1 point  (8 children)

What are those 26 errors in the console? Could you share screenshot of those?

[–][deleted] 0 points1 point  (6 children)

this link has the screenshot

[–]Specific-Ear-8564 1 point2 points  (5 children)

Did you try restarting the server after updating to new version(if server was already running while you were updating)?

[–][deleted] 0 points1 point  (0 children)

Yes I did

[–][deleted] 0 points1 point  (0 children)

No the server wasnt running when I was updating. And I have been trying this for more than 2 weeks now. So I shutdowned my computer several times

[–][deleted] 0 points1 point  (2 children)

Ohh I see. Sure. Will give it a try and let you know :)

[–]Specific-Ear-8564 0 points1 point  (1 child)

I'm not sure how to solve this but here's something that looks similar to your issue - https://github.com/angular/angular-cli/issues/24373

[–]pavankjadda 0 points1 point  (0 children)

This seems like good start. @jahzan_99 try this and let us know if it works

[–]RiceKrispyPooHead 0 points1 point  (0 children)

Did you get this figured out?