I've tried a lot to fix this problem, but I can't find any solution. This is the error:
npm ERR! While resolving: @angular-devkit/build-angular@14.2.4
npm ERR! Found: @angular/compiler-cli@12.2.16
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"^12.2.16" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.2.4
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^14.2.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/compiler-cli@14.2.4
npm ERR! node_modules/@angular/compiler-cli
npm ERR! peer @angular/compiler-cli@"^14.0.0" from @angular-devkit/build-angular@14.2.4
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^14.2.4" from the root project
I've tried to downgrade angular/compiler-cli, but then I get the next error. Also used --force and --allow-dirty but the error still occurse. My goal was to upgrade angular from version 13 to 14. Hope someone can help..