Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGX-CUSTOM-VALIDATOR **NOT WORK** After Upgrade Angular Version #60

Open
kuth-chi opened this issue Jul 2, 2021 · 2 comments
Open

NGX-CUSTOM-VALIDATOR **NOT WORK** After Upgrade Angular Version #60

kuth-chi opened this issue Jul 2, 2021 · 2 comments

Comments

@kuth-chi
Copy link

kuth-chi commented Jul 2, 2021

IMPORTANT:
After I have upgrade Angular CLI version from 11 to 12
There are issue below
`
-```
_Namespace '"***/node_modules/ngx-custom-validators/node_modules/@an
gular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.

4257 static ɵmod: ɵngcc0.ɵɵNgModuleDeclaration<ɵInternalFormsSharedModule, [typeof ɵNgNoValidate, typeof NgSelectOption, typeof ɵNgSelectMultipleOption, typeof DefaultValueAccessor, t
ypeof NumberValueAccessor, typeof RangeValueAccessor, typeof CheckboxControlValueAccessor, typeof SelectControlValueAccessor, typeof SelectMultipleControlValueAccessor, typeof RadioContro
lValueAccessor, typeof NgControlStatus, typeof NgControlStatusGroup, typeof RequiredValidator, typeof MinLengthValidator, typeof MaxLengthValidator, typeof PatternValidator, typeof Checkb
oxRequiredValidator, typeof EmailValidator], never, [typeof ɵNgNoValidate, typeof NgSelectOption, typeof ɵNgSelectMultipleOption, typeof DefaultValueAccessor, typeof NumberValueAccessor,
typeof RangeValueAccessor, typeof CheckboxControlValueAccessor, typeof SelectControlValueAccessor, typeof SelectMultipleControlValueAccessor, typeof RadioControlValueAccessor, typeof NgCo
ntrolStatus, typeof NgControlStatusGroup, typeof RequiredValidator, typeof MinLengthValidator, typeof MaxLengthValidator, typeof PatternValidator, typeof CheckboxRequiredValidator, typeof
EmailValidator]>;
?_

  • _Namespace '"***/node_modules/ngx-custom-validators/node_modules/@an
    gular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

4258     static ɵinj: ɵngcc0.ɵɵInjectorDeclaration<ɵInternalFormsSharedModule>;`


**Ngx-Custom-Validator version 11.0.1**

  - Not working on Angular CLI version 12

**Expected/desired behavior**

  - 

**Environment information**

  - OS: 
  - Angular Version: 
  - Typescript version:
  - npm version: 
  - Node Version: 

**Other information**
@mvdcreativo
Copy link

What I did in the meantime to not update the library to ng12 was to update the library's own package.json:
"@angular/common": "~12.1.1",
"@angular/compiler": "~12.1.1",
"@angular/core": "~12.1.1",
"@angular/forms": "~12.1.1",
"@angular/platform-browser": "~12.1.1",
"@angular/platform-browser-dynamic": "~12.1.1",

"peerDependencies": {
"@angular/common": "~12.1.1",
"@angular/core": "~12.1.1",
"@angular/forms": "~12.1.1"
},

Run npm install and it worked

@davifsroberto
Copy link

it worked here: https://stackoverflow.com/questions/68220000/how-to-fix-ngx-custom-validator-in-angular-12/68746402#68746402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants