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

Cannot read properties of undefined (reading 'defineComponent')

Open cpkuo opened this issue 3 years ago • 3 comments

Hello,

I'm trying to run the example in the repo and there are a few console messages. The first is:

Uncaught TypeError: Cannot read properties of undefined (reading 'defineComponent') at vue-recaptcha.js:116

Then there are some Vue warnings for:

Component is missing template or render function.

Is there anything else needed to run the example? Thanks!

cpkuo avatar Dec 24 '21 23:12 cpkuo

first part of the issue needs some RTFM: like documented, you need to import @vue/composition-api and vue-demi the missing templates remain a problem. it's also a duplicate: https://github.com/DanSnow/vue-recaptcha/issues/766

ollixx avatar May 11 '22 16:05 ollixx

There's a whole stream of related errors such as

[Vue warn]: onMounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().

:(

tomchiverton avatar Aug 15 '22 16:08 tomchiverton

@vue/composition-api is not needed for Vue 2.7, but vue-recaptcha still won't run w/o it

See https://github.com/vuejs/composition-api

feedanal avatar Sep 14 '22 09:09 feedanal