I am facing a challenge with my Angular material project, which is currently outdated and needs to be updated to version 13.
Running npm outdated
revealed the following results:
https://i.stack.imgur.com/ayjDu.png
The Angular update guide suggests upgrading one major version at a time and provides the following commands:
cmd /C "set "NG_DISABLE_VERSION_CHECK=1" && npx @angular/cli@8 update @angular/cli@8 @angular/core@8"
However, when executing the above command, I encounter the following errors:
- Package "nativescript-angular" has an incompatible peer dependency to "typescript" (requires "~3.1.1", would install "3.5.3").
- Package "codelyzer" has multiple incompatible peer dependencies with various Angular modules.
- Attempting to manually update these packages has proven to be complex due to interdependent dependencies.
I am determined to successfully upgrade to Angular 13 by making necessary code changes, but I am unsure of the correct approach to address this issue.
UPDATE
Even using --force during the update process results in a different error:
https://i.stack.imgur.com/et7jz.png
Executing the command below triggers further issues:
ng update --all --force