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

How to install ng2-validation in Ionic 3 App #108

Open
Neotrixsx opened this issue Sep 15, 2017 · 4 comments
Open

How to install ng2-validation in Ionic 3 App #108

Neotrixsx opened this issue Sep 15, 2017 · 4 comments

Comments

@Neotrixsx
Copy link

I try to add ng2-validation in Ionic 3 App.
It successfully installs using
npm install ng2-validation --save
But after that i get an error
Uncaught Error: Unexpected module 'CustomFormsModule' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@component annotation.

Please help me resolve that problem

@tomavic
Copy link

tomavic commented Oct 10, 2017

I got same problem here

@tomavic
Copy link

tomavic commented Oct 10, 2017

Someone mention admins!!

@adyba
Copy link

adyba commented Oct 11, 2017

I have just (literally) installed ng2-validation into (fresh) Ionic3 and everything works.
But I'm using it via FormBuilder. Mentioned error seems to be result of using ng2-validation as directive.
Have have you injected it into urAwesomePage.module.ts ? It could be a lazyloading issue.

@Maneabhi
Copy link

I also got same error. You need add CustomFormsModule to imports array after FormsModule

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

4 participants