ngx-custom-validators icon indicating copy to clipboard operation
ngx-custom-validators copied to clipboard

Incompatibility with Angular 13

Open 10Bude10 opened this issue 3 years ago • 5 comments

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

10Bude10 avatar Nov 11 '21 07:11 10Bude10

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")

manast avatar Jun 03 '22 02:06 manast

I think no one is maintaining this repo from last two year.

ct-dixit avatar Jun 16 '22 06:06 ct-dixit

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 avatar Jun 25 '22 11:06 hpardess

@hpardess Did you find the solution or alternative?

jeetenparmar avatar Dec 29 '22 09:12 jeetenparmar

run:

npm install --save --force @narik/custom-validators

pedrohills avatar Feb 12 '23 02:02 pedrohills