-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Unknown error loading NuxtTurnstile in the page #311
Comments
I'm not sure if those invisible errors are caused by this module or by Turnstile itself. If there is some way to find that out, we can keep this issue open, otherwise it seems to me to be more or less a duplicate of #250, right? |
@dargmuesli Thank you for your prompt reply, unfortunately, I really think these errors are caused by this module. I installed Turnstile following an attack by bots that created a lot of accounts on my site, I've done several tests and there's definitely a big loading problem with this module, Sometimes it's when you refresh the page that the module doesn't load. If I refresh the page several times, there are times when there's an error and the module doesn't load. After reloading a page normaly: I saw the PR that will add Nuxt scripts (#306) but I didn't take the time to fully understand it, is it supposed to solve the module loading problems? I'd like to help you find a solution to these problems so that the loading of this module is 100% reliable |
Yes, I see good chances that the Nuxt scripts integration would resolve those loading issues. |
🐛 The bug
Hello,
Thank you for your work on this module!
NuxtTurnstile
in my login page, I had to use the technique described in this issue (NuxtTurnstile component not loading Turnstile script as expected #250 (comment)) otherwise it wouldn't load at all and there was an error that crashed the page. The problem is that even with this trick, there's are errors.I made a Stackblitz reproduction,
I don't know exactly why but the trick I use above isn't necessary in Stackblitz, but it is in my app.
(I think there must be a Race condition in a real app due to the fact that there are several things loading, whereas in Stackblitz there's only the
NuxtTurnstile
component).NuxtTurnstile
component generates 3 invisible errors. There are three console errors created when the component is loaded, but no content or message.To reproduce this:
Thank you for your help!
🛠️ To reproduce
https://stackblitz.com/edit/nuxt-starter-trkpmx?file=nuxt.config.ts,pages%2Flogin.vue,pages%2Findex.vue
🌈 Expected behaviour
NuxtTurnstile
component, without tricksℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: