ngx-custom-validators
ngx-custom-validators copied to clipboard
Incompatibility with Angular 13
IMPORTANT: Upgrading angular 12 to 13 fails in migration step. Ngx-custom-validators have to be updated to angular@13 as well $ npx @angular/cli@13 update @angular/core@13 @angular/cli@13 Using package manager: 'npm' Collecting installed dependencies... Found 80 dependencies. Package "ngx-custom-validators" has an incompatible peer dependency to "@angular/common" (requires "~11.0.0" (extended), would install "13.0.1"). Package "ngx-custom-validators" has an incompatible peer dependency to "@angular/core" (requires "~11.0.0" (extended), would install "13.0.1"). Package "ngx-custom-validators" has an incompatible peer dependency to "@angular/forms" (requires "~11.0.0" (extended), would install "13.0.1"). × Migration failed: Incompatible peer dependencies found. Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
Steps to reproduce and a minimal demo Install angular@13 and [email protected]
Current behavior Migration fails. Can't start application
Expected/desired behavior Should work with angular 13
Environment information
- Angular Version: 13
- Typescript version: 4.4.4
- npm version: 6.14.14
- Node Version: 14.17.5
It actually fails already with angular 11:
Package "ngx-custom-validators" has an incompatible peer dependency to "@angular/common" (requires "~11.0.0" (extended), would install "11.2.14")
I think no one is maintaining this repo from last two year.
npm WARN While resolving: @angular/[email protected]
npm WARN Found: [email protected]
npm WARN node_modules/zone.js
npm WARN zone.js@"~0.11.4" from the root project
npm WARN 2 more (@angular/core, ngx-custom-validators)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer zone.js@"~0.10.3" from @angular/[email protected]
npm WARN node_modules/ngx-custom-validators/node_modules/@angular/core
npm WARN @angular/core@"~11.0.0" from [email protected]
npm WARN node_modules/ngx-custom-validators
npm WARN 5 more (@angular/common, @angular/forms, ...)
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/zone.js
npm WARN peer zone.js@"~0.10.3" from @angular/[email protected]
npm WARN node_modules/ngx-custom-validators/node_modules/@angular/core
npm WARN @angular/core@"~11.0.0" from [email protected]
npm WARN node_modules/ngx-custom-validators
npm WARN 5 more (@angular/common, @angular/forms, ...)
Angular v13.1.0 ngx-custom-validators v11.0.1
@hpardess Did you find the solution or alternative?
run:
npm install --save --force @narik/custom-validators