-
Notifications
You must be signed in to change notification settings - Fork 129
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
Cannot determine the module for class RecaptchaComponent #116
Comments
Any updates on this? Did you solve the problem? I have the same.. |
I haven't figured it out yet myself. Right now it's looking like I'm going to need to roll my own reCaptcha wrapper. |
Did you already write your own wrapper? |
Nope, ended up just giving up on this library and changed over to this one: https://www.npmjs.com/package/ngx-captcha |
This one seems good. Thanks! |
I am able to use ng-recaptcha on a normal Angular 6 app however I'm seeing this same issue when trying to import RecaptchaModule in a module that's within an Angular Library. |
Hi, everybody! This should be fixed with version 4.1.0 now, sorry it took so long! |
Im on 4.2.1 and getting the same error. Did you sure is solved? |
Also getting this problem when compiling angular-cli library, using ng-recaptcha v4.1.0 and v4.2.1. |
This seems to be related how modules are structured in ng-recaptcha. A workaround: Importing "RecaptchaCommonModule" in your application in addition to "RecaptchaModule" seem to solve the problem. |
Summary
I'm submitting a:
Description
I am a getting the error on build of "Cannot determine the module for class RecaptchaComponent in ... Add RecaptchaComponent to the NgModule to fix it". This same error is mentioned over on #87 . I have both RecaptchaModule and RecaptchaFormsModule in the imports array of my feature module (not the root app module) and as such am importing RecaptchaModule as-is instead of as 'RecaptchaModule.forRoot()'.
Is there a problem with importing those modules into feature modules or is something else going on here?
Lib versions:
The text was updated successfully, but these errors were encountered: