We are encountering a compatibility issue with ng-recaptcha when upgrading our project to Angular 18. While the ng-recaptcha package lists Angular versions >=14 as compatible, we are receiving peer dependency errors when trying to install it with Angular 18. Specifically, the error indicates a conflict due to the package's peer dependency requiring @angular/core@^17.0.0.
To bypass this issue, we used the --force flag to install the dependencies, and after testing, our application compiles, serves, and runs as expected with Angular 18. However, relying on --force is not ideal for our CI/CD pipeline, as it introduces risk and uncertainty in automated processes.
We are looking for an official update to ng-recaptcha that explicitly supports Angular 18, so we can avoid using --force in our builds and ensure long-term compatibility. Below are the details of the error and logs from the installation process:
npm ERR! @angular/core@"18.2.7" from the root projectnpm ERR! peer @angular/core@">=14.0.0" from @ali-hm/angular-tree-component@12.0.5npm ERR! node_modules/@ali-hm/angular-tree-componentnpm ERR! @ali-hm/angular-tree-component@"^12.0.5" from the root projectnpm ERR! 8 more (@angular/animations, @angular/common, ...)
We are encountering a compatibility issue with ng-recaptcha when upgrading our project to Angular 18. While the ng-recaptcha package lists Angular versions >=14 as compatible, we are receiving peer dependency errors when trying to install it with Angular 18. Specifically, the error indicates a conflict due to the package's peer dependency requiring @angular/core@^17.0.0.
To bypass this issue, we used the --force flag to install the dependencies, and after testing, our application compiles, serves, and runs as expected with Angular 18. However, relying on --force is not ideal for our CI/CD pipeline, as it introduces risk and uncertainty in automated processes.
We are looking for an official update to ng-recaptcha that explicitly supports Angular 18, so we can avoid using --force in our builds and ensure long-term compatibility. Below are the details of the error and logs from the installation process:
npm ERR! @angular/core@"18.2.7" from the root project
npm ERR! peer @angular/core@">=14.0.0" from @ali-hm/angular-tree-component@12.0.5
npm ERR! node_modules/@ali-hm/angular-tree-component
npm ERR! @ali-hm/angular-tree-component@"^12.0.5" from the root project
npm ERR! 8 more (@angular/animations, @angular/common, ...)