t49tran / react-google-recaptcha-v3

Google Recaptcha V3 integration for React
MIT License
427 stars 91 forks source link

Uncaught Error: Missing required parameters: sitekey #173

Open PedroPauloML opened 1 year ago

PedroPauloML commented 1 year ago

I'm receiving the error Uncaught Error: Missing required parameters: sitekey when I back a history in browser.

How can I solve it?

Captura de Tela 2023-01-04 às 16 00 47

ashutheone commented 1 year ago

We too are facing this issue when used with NextJS 11 based service

george-torres25 commented 1 year ago

Any progress on this?

seanmthompson commented 1 year ago

Seeing this as well in Next 13

abraira85 commented 11 months ago

I have a same problem...

abraira85 commented 11 months ago

I already solved the problem...

hanselsen commented 11 months ago

@abraira85 could you please elaborate on how you have fixed the problem? I would like to know it as well.

liorguardio commented 9 months ago

Hi! there is a fix for this issue?

Prooksius commented 8 months ago

Hope this helps. locate and remove this loaded recaptcha script while unloading wrapping component GoogleReCaptchaProvider. Like this:

const scriptSelector = 'script[src=\'https://www.google.com/recaptcha/api.js?render=' + recaptchaSiteKey + '\']';

const script = document.querySelector(scriptSelector);

if (script) {
  script.remove();
}
leikoilja commented 7 months ago

Any solution? Considering disabling recaptcha all-together, but that doesn't sound like a good solution haha 😃

Prooksius commented 7 months ago

Try this Without any third party component. I did it, not exactly as described, but similar. Everything is just fine.