-
Notifications
You must be signed in to change notification settings - Fork 131
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
TS2503: Cannot find namespace 'ReCaptchaV2' (Angular 19) #328
Comments
Will look into it in 1-2 days. |
Have someone found a temporary workaround for this problem, until @LakhveerChahal release a definitive fix? Thanks 🙏 |
Sorry couldn’t look into it in the committed timeline. Will fix it on this weekend. |
I have published a new version However, the fix was weird. It had to be done after generating the dist of the library and adding the missing ``` in one of the d.ts file. Earlier, it used to be done automatically by ng-packagr but looks like there may be some regression in either Angular 19 or ng-packagr or typescript. Update: This change in typescript was the reason behind this. See: https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#simplified-reference-directive-declaration-emit Alternatively, it can also be fixed by adding "grecaptcha" in "types" property in your tsconfig.app.json |
It is working again! Thanks @LakhveerChahal. |
@LakhveerChahal I can't find this last version (15.0.2) on NPM. |
Summary
I'm submitting a:
Description
I'm updating my application from v16 to v19 and once I try to build my custom angular library that contains dependency of
ng-recaptchar-19
(this also happens withng-recaptchar-2
) I'm facing these errors below:My Angular version is 19.0.2 (local and global)
My NodeJs version is 20.15.0
My NPM version is 10.7.0
This is my package.json content:
Could someone support me?
The text was updated successfully, but these errors were encountered: