changhuixu / ngx-digit-only

An Angular directive to only allow [0-9] in the input box when typing, pasting or drag/dropping.
https://changhuixu.github.io/ngx-digit-only/
MIT License
161 stars 70 forks source link

Update to Angular v14 #63

Open angelzarazua opened 2 years ago

angelzarazua commented 2 years ago

Please, update to Angular 14

changhuixu commented 2 years ago

@angelzarazua Do you have problems in installing this npm package in an Angular v14 project? It shouldn't happen because this package currently sets its dependency to be Angular versions >=12.

May I know more details?

dacrypt commented 1 year ago

angular refuses to upgrade to v14 unless you use --force which is not ideal

ng update @angular/core@14 @angular/cli@14 @angular-eslint/schematics@14 
The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned 14.2.10 to perform the update.
✔ Package successfully installed.
Using package manager: npm
Collecting installed dependencies...
Found 101 dependencies.
Fetching dependency metadata from registry...
                  Package "@uiowa/digit-only" has an incompatible peer dependency to "@angular/common" (requires "^12.0.0" (extended), would install "14.2.12").
                  Package "@uiowa/digit-only" has an incompatible peer dependency to "@angular/core" (requires "^12.0.0" (extended), would install "14.2.12").
✖ Migration failed: Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.