hCaptcha / vue-hcaptcha

Vue.js hCaptcha Component Library
https://www.npmjs.com/package/@hcaptcha/vue-hcaptcha
155 stars 31 forks source link

[Vue warn]: Unhandled error during execution of unmounted hook #48

Closed anditsung closed 1 year ago

anditsung commented 3 years ago

hcaptcha-vue3.es.js?406f:129 Uncaught (in promise) TypeError: this.hcaptcha.then is not a function at Proxy.unmounted (hcaptcha-vue3.es.js?406f:129) at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:6685) at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?5c40:6694) at Array.hook.weh.hook.weh (runtime-core.esm-bundler.js?5c40:1948) at flushPostFlushCbs (runtime-core.esm-bundler.js?5c40:6886) at flushJobs (runtime-core.esm-bundler.js?5c40:6931)

have this error when change page im using laravel with inertiajs vue3

piliugin-anton commented 3 years ago

Same problem here

osbre commented 3 years ago

Same problem here. Waiting for #49 to get merged. Thanks a lot @piliugin-anton

Update: found this alternative that works with Vue 3 and doesn't have this problem. https://github.com/DSergiu/vanilla-hcaptcha

import 'vanilla-hcaptcha';

const app = createApp({})
app.config.compilerOptions.isCustomElement = tag => ['h-captcha'].includes(tag)
app.mount('#app')
alimardani94 commented 3 years ago

49 marged but the problem has not been resolved yet

e271828- commented 3 years ago

@alimardani94 on master? any more details?

osbre commented 3 years ago

My guess is that the new version needs to be released. Perhaps @e271828- tried the current (buggy) version. (v0.3.1)

DSergiu commented 1 year ago

Closing this stale issue. Please reopen if necessary.