react-google-recaptcha-v3 icon indicating copy to clipboard operation
react-google-recaptcha-v3 copied to clipboard

Uncaught Error: Missing required parameters: sitekey

Open PedroPauloML opened this issue 1 year ago • 10 comments

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

PedroPauloML avatar Jan 04 '23 19:01 PedroPauloML

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

ashutheone avatar Feb 10 '23 13:02 ashutheone

Any progress on this?

george-torres25 avatar Jun 13 '23 21:06 george-torres25

Seeing this as well in Next 13

seanmthompson avatar Jun 21 '23 20:06 seanmthompson

I have a same problem...

abraira85 avatar Jul 21 '23 16:07 abraira85

I already solved the problem...

abraira85 avatar Jul 21 '23 16:07 abraira85

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

hanselsen avatar Aug 04 '23 11:08 hanselsen

Hi! there is a fix for this issue?

liorguardio avatar Oct 05 '23 10:10 liorguardio

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();
}

Prooksius avatar Oct 12 '23 17:10 Prooksius

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

leikoilja avatar Dec 02 '23 14:12 leikoilja

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

Prooksius avatar Dec 02 '23 15:12 Prooksius