You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I've been trying to get this working since yesterday and I am left scratching my head as to what could possibly be happening. For context, building a React + Astro website.
Firstly, my module which is using the ReCAPTCHA component:
If I remove the ReCAPTCHA component from my form component, it works. If I add it back in, it throws this error. The useRef it references is the very first one of the script (even if I remove useRef completely, it starts having problems with useState, so seems like these functions are being overrode by something).
One other thing to note, I get the following error in the console pointing to the line I load the component in my form:
Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
My understanding is that this error is caused by importing a default export with braces (or vice versa). I am not doing that, and I am following the guide's method for importing.
Any thoughts/help is appreciated. I can provide any further context possibly necessary.
The text was updated successfully, but these errors were encountered:
react-google-recaptcha version: 3.1.0
react-async-script version: 1.2.0
Hello! I've been trying to get this working since yesterday and I am left scratching my head as to what could possibly be happening. For context, building a React + Astro website.
Firstly, my module which is using the
ReCAPTCHA
component:If I remove the
ReCAPTCHA
component from myform
component, it works. If I add it back in, it throws this error. TheuseRef
it references is the very first one of the script (even if I removeuseRef
completely, it starts having problems withuseState
, so seems like these functions are being overrode by something).One other thing to note, I get the following error in the console pointing to the line I load the component in my form:
My understanding is that this error is caused by importing a default export with braces (or vice versa). I am not doing that, and I am following the guide's method for importing.
Any thoughts/help is appreciated. I can provide any further context possibly necessary.
The text was updated successfully, but these errors were encountered: