When using the react hcaptcha npm package, I have been getting the error Uncaught (in promise) TypeError: originalExecuteFunc is not a function a lot. I don't know why this is happening and I don't know what is going on.
I'm guessing it's an update on the package throwing that error.
The error originates when I run captchaRef.current.execute(); where captchaRef is a react ref given to the <HCaptcha/> element.
If there is any way, please tell me how to resolve this error and avoid it.