yuyang041060120 / ng2-validation

angular2 validation
https://yuyang041060120.github.io/ng2-validation/index.html
MIT License
611 stars 213 forks source link

Getting Validtor neither Component or DirectiveType #136

Closed MithileshRavindiran closed 4 years ago

MithileshRavindiran commented 4 years ago

core.js:6272 ERROR Error: Uncaught (in promise): Error: 'MinValidator' is neither 'ComponentType' or 'DirectiveType'. Error: 'MinValidator' is neither 'ComponentType' or 'DirectiveType'.

Solution environment:

"dependencies": { "@angular/animations": "~9.1.0", "@angular/common": "~9.1.0", "@angular/compiler": "~9.1.0", "@angular/core": "~9.1.0", "@angular/forms": "~9.1.0", "@angular/localize": "~9.1.0", "@angular/platform-browser": "~9.1.0", "@angular/platform-browser-dynamic": "~9.1.0", "@angular/router": "~9.1.0", "@fortawesome/fontawesome-free": "^5.13.0", "@ng-bootstrap/ng-bootstrap": "^6.1.0", "angularfire2": "^5.4.2", "bootstrap": "^4.4.1", "firebase": "^7.14.3", "ng2-validation": "^4.2.0", "rxjs": "~6.5.4", "tslib": "^1.10.0", "zone.js": "~0.10.2" },

my app.module.ts

imports: [ BrowserModule, AppRoutingModule, NgbModule, AngularFireModule.initializeApp(environment.firebase), AngularFireAuthModule, AngularFireDatabaseModule, FormsModule, CustomFormsModule ]

MithileshRavindiran commented 4 years ago

Issue is sorted with ngx-custom-validators