Enngage / ngx-captcha

ReCaptcha components for Angular. Live preview:
https://enngage.github.io/ngx-captcha/
MIT License
151 stars 48 forks source link

After update to 12.X problem #141

Closed blueiceprj closed 2 years ago

blueiceprj commented 2 years ago

I use angular 14.1.3 version.

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/common@^13.0.0 | ^14.0.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
clark-stevenson commented 2 years ago

Same 👍

ng update ngx-captcha

Package "ngx-captcha" has an incompatible peer dependency to "@angular/common" (requires "^13.0.0 | ^14.0.0", would install "14.1.3")

Package "ngx-captcha" has an incompatible peer dependency to "@angular/core" (requires "^13.0.0 | ^14.0.0", would install "14.1.3")
AgentSource commented 2 years ago

Same - not able to create a PR — fix is...

Change this =>

"peerDependencies": {
    "@angular/common": "^13.0.0 | ^14.0.0",
    "@angular/core": "^13.0.0 | ^14.0.0"
  }

To this =>

"peerDependencies": {
    "@angular/common": "^13.0.0 || ^14.0.0",
    "@angular/core": "^13.0.0 || ^14.0.0"
  }