Upgrading an existing project from Angular 5 to Angular 14

Issue

This Content is from Stack Overflow. Question asked by user20030559

There were some enhancements needed to be done from an old project but my Angular is angular 14 and the project is in Angular 5. I cannot load the project because of the version compatibility issues. I have tried simply everything including deleting the node modules and installing it one by one, npm update, ng serve.

The main errors are <button class=”reset float-left” [routerLink]=”[‘/patient’]”>BackCan’t bind to ‘routerLink’ since it isn’t a known property of ‘button’.ngtsc(-998002)
blood-sugar-monitoring.component.ts(27, 1): Error occurs in the template of component BloodSugarMonitoringComponent. and

(property) BloodSugarMonitoringComponent.bloodsugarGroup: FormGroup
Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’.ngtsc(-998002)
blood-sugar-monitoring.component.ts(27, 1): Error occurs in the template of component BloodSugarMonitoringComponent.
I have done everything including importing the Form and ReactiveFormModule



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?