-
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
Angular 9 - Ivy compatibility #168
Comments
With ivy enabled we are getting errors while importing the module. Ng-recaptcha must generate proper .metadata.json file. |
I have this error: ERROR in node_modules/ng-recaptcha/recaptcha/recaptcha-v3.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
Angular CLI: 9.0.6 Angular: 9.0.6 Package Version@angular-devkit/architect 0.900.6 |
How can I help to fix this module import in an angular 9 codebase with Ivy activated ? |
When I drop "forRoot" on RecaptchaModule import, it's working with Ivy ! |
For some reason, even removing "forRoot" I got a new error:
But if I set enableIvy to false, works fine only for Recaptcha, but raise errors with components compiled with Ivy tsconfig.json: |
I just killed the dev server and started again and it worked. I had faced the same issue with other library and did the same 👍 |
Hi Guys, currently I'm trying to update to angular v10.x but this is a constraint to do it, will you add support for new angular versions in the near future? |
Hey folks!
Cheers! |
ng13 |
Hi 'ReCaptchaV3Service' does not appear to be an NgModule class.(-996002) i use angular 17, node 20.0.x, npm 10.0.x thanks for your help in advance! |
@mbuku feel free to open a new issue. Please also specify the version of |
Summary
I'm submitting a:
Description
Right now, we have when using ng-recaptcha with Angular 9, you get a warning
warning " > [email protected]" has incorrect peer dependency "@angular/core@^6.0.0 || ^7.0.0 || ^8.0.0".
.There are no errors and everything work expected (for us), when using ng-recaptcha with ReCAPTCHA v2 on our Angular 9 codebase but only this warning.
I don't know if the module needs more work for Angular 9 full compatibility, or if only the dependency version should be bumped if everything works as expected.
Does anybody has more information regarding Angular 9/Ivy and ng-recaptcha?
Thanks in advance!
tsc --version
): 3.7.5The text was updated successfully, but these errors were encountered: