To ensure compatibility, it is important to update the version numbers in your package.json
for the following packages:
"@angular/animations": "^7.0.0",
"@angular/cdk": "7.3.3",
"@angular/common": "^7.0.0",
"@angular/compiler": "7.2.6",
"@angular/core": "7.2.6",
"@angular/forms": "^7.0.0",
"@angular/http": "^7.0.0",
"@angular/material": "7.3.3",
"@angular/material-moment-adapter": "^7.3.3",
"@angular/platform-browser": "^7.0.0",
"@angular/platform-browser-dynamic": "^7.0.0",
"@angular/router": "^7.0.0",
"rxjs": "6.4.0",
Additionally, make sure to adjust version numbers in dev-dependencies as follows:
"@angular/compiler-cli": "^7.2.6",
"@angular-devkit/build-angular": "0.13.3",
"typescript": "3.2.4",
"@angular/cli": "~7.3.3",
It's also essential to downgrade any libraries that require downgrading based on Angular's version. Be sure to check error messages after completing this step...
After making these changes, execute:
rm -rf node_modules
In the project's root folder to remove all existing packages.
Next, run:
npm i
This should resolve any compatibility issues and allow you to proceed smoothly with your project.