nuxt-modules / turnstile

đŸ”Ĩ Cloudflare Turnstile integration for Nuxt
https://cloudflare.com/products/turnstile
MIT License
240 stars 18 forks source link

Module broken if we use @nuxt/script > v0.6.0 #320

Closed XStarlink closed 4 months ago

XStarlink commented 4 months ago

🐛 The bug

The release of @nuxt/scripts v0.6.0 here introduced some breaking changes, impacting @nuxtjs/turnstile which now throws this error:

useElementScriptTrigger is provided by @nuxt/scripts. Check your console to install it or run 'npx nuxi@latest module add @nuxt/scripts' to install it.

This is normal as some composables have been renamed, but I just wanted to let you know here

🛠ī¸ To reproduce

.

🌈 Expected behaviour

The module should load without errors

ℹī¸ Additional context

No response

dargmuesli commented 4 months ago

Thank you for the heads up, I've limited the supported version range for now as there seems to be another issue with @nuxt/scripts v6.0.2: https://github.com/nuxt/scripts/issues/133