Skip to content
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

Bug: [Cloudflare Turnstile] Cannot find Widget cf-chl-widget-85edr, consider using turnstile.remove() to clean up a widget.. #30

Closed
tnfAngel opened this issue Aug 25, 2023 · 8 comments · Fixed by #31 or #33
Labels
bug Something isn't working

Comments

@tnfAngel
Copy link

tnfAngel commented Aug 25, 2023

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Getting this weird error a lot of times when you are on another page
imagen

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox example below:

  • Create a next.js project with 2 pages, one blank, or with whatever you want one with the captcha (something like a register or login), and add next.js link to the main page
  • When you load the register page with the captcha, everything works fine
  • When you load the main page clicking the link, that error appears a lot of times in the terminal (probably the cloudflare script still loaded, because is a SPA,

What is the expected behavior?

  • Remove the captcha when you are in another page

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

"@chakra-ui/next-js": "^2.1.5",
"@chakra-ui/react": "2.5.2",
"@chakra-ui/system": "^2.6.0",
"@marsidev/react-turnstile": "^0.2.3",
"next": "13.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
@8cells
Copy link

8cells commented Aug 28, 2023

I have the same issue

@futantan
Copy link
Contributor

same here, any ideas?

futantan added a commit to futantan/react-turnstile that referenced this issue Aug 30, 2023
@marsidev marsidev added the bug Something isn't working label Aug 30, 2023
@acalderono
Copy link

I have the same problem too

@marsidev
Copy link
Owner

marsidev commented Aug 30, 2023

I have the same problem too

Have you tried with version 0.2.4?

@acalderono
Copy link

acalderono commented Aug 30, 2023 via email

@marsidev marsidev reopened this Aug 30, 2023
@marsidev
Copy link
Owner

@acalderono Can you please share a minimal reproducible codesandbox? I don't see the warning log anymore.

@acalderono
Copy link

a warning appears, after logging in, and starts iterating..

image

@marsidev
Copy link
Owner

Would it be possible for you to create a reproducible CodeSandbox? This would greatly assist in debugging and resolving the issue. I am unable to replicate it on my end. @acalderono

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
5 participants