vue-hcaptcha icon indicating copy to clipboard operation
vue-hcaptcha copied to clipboard

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

Open anditsung opened this issue 2 years ago • 5 comments

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

anditsung avatar Oct 25 '21 06:10 anditsung

Same problem here

piliugin-anton avatar Oct 27 '21 18:10 piliugin-anton

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')

osbre avatar Oct 27 '21 22:10 osbre

#49 marged but the problem has not been resolved yet

alimardani94 avatar Nov 07 '21 07:11 alimardani94

@alimardani94 on master? any more details?

e271828- avatar Nov 07 '21 20:11 e271828-

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

osbre avatar Nov 07 '21 20:11 osbre

Closing this stale issue. Please reopen if necessary.

DSergiu avatar Feb 06 '23 07:02 DSergiu