webcat12345 / ngx-intl-tel-input

Phone number input field to support international numbers, Angular
MIT License
213 stars 333 forks source link

Need a support for Angular 14 version #476

Open rsystems-8601 opened 1 year ago

rsystems-8601 commented 1 year ago

Hi Sir,

I have used your NPM package [ngx-intl-tel-input] in my site .

Suddenly client upgraded Angular-CLI version to 14.2.6. But your npm package not supporting Angular 14, So can you please allow your package dependencies with Angular 14 version. It is working fine with Angular -14 as I have tested it with forcefully installation. You may check too. Problem is only that without force it is not supporting Angular-14 , you just need to allow in NPM package. I trust you will help us to save my customer trust too.

lotiko commented 1 year ago

Hello, I have the same problem and I would also like to have the dependency change done. For the moment I have installed the package with --legacy-peer-deps, then I have modified the peerdependencies myself in node_modules/ngx-intl-tel-input/package.json

"peerDependencies": {
    "@angular/common": "8.x - 13.x",
    "@angular/core": "8.x - 13.x",
    "@angular/forms": "8.x - 13.x",
    "google-libphonenumber": "^3.2.3",
    "intl-tel-input": "^17.0.3",
    "ngx-bootstrap": "^6.0.0"
  },

to

  "peerDependencies": {
    "@angular/common": "8.x - 14.x",
    "@angular/core": "8.x - 14.x",
    "@angular/forms": "8.x - 14.x",
    "google-libphonenumber": "^3.2.3",
    "intl-tel-input": "^17.0.3",
    "ngx-bootstrap": "^6.0.0"
  },

Then remove package-lock.json and reinstall package

After that I have no problem with the installation of new packages but I would like to be sure that it is not a problem and in case of deletion of node_modules the operation has to be repeated