Skip to content

(New on v1.4.1) Error: customValidator is not provided via NG_VALIDATORS or NG_ASYNC_VALIDATORS #417

@rahul-winner

Description

@rahul-winner

@udos86 & Team.

Although it looks very much related to this issue #271 .
However, I'm getting this error even in development build. On investigation, I noticed that the method "getCustomValidatorFn" of DynamicFormService is getting 'this.NG_VALIDATORS' as null. Consequently, it does not even check whether custom validator functions exists or not and eventually fails.

Please take a look on below image which shows the stack trace on debugger.

Note: I'm using ng2-dynamic-forms version : 1.4.4

image

I'm not sure if I'm missing something terribly here. Or if there is any known problem.

This is blocking our development as that custom validator is needed for a business validation. Kindly let me know if you need elaboration.

I'll be glad to get any kind of help.

Thanks a lot !!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions