Skip to content
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

Unable to use vue-recaptcha(version-2.0.3) in my vue 2.7 project #1512

Open
sukhe-singh opened this issue Jan 22, 2024 · 1 comment
Open
Labels

Comments

@sukhe-singh
Copy link

sukhe-singh commented Jan 22, 2024

Description

I am trying to integrate vue-recaptcha(2.0.3) library in my existing vuejs project having version 2.7.0. But I am getting this error:
Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

Minimal Reproducible Example



<script>
  import { VueRecaptcha } from 'vue-recaptcha';
  export default {
  name: 'VueRecaptcha'
    components: { VueRecaptcha }
  };
</script>

System info

node 10.1.0
npm- 8.1.0

@DanSnow
Copy link
Owner

DanSnow commented Jan 22, 2024

Please don't name your component as VueRecaptcha. It will cause a conflict in vue's component resolution.

<script>
// ...
export default {
 // name: 'VueRecaptcha', // don't do this, named it as something else
 components: { VueRecaptcha },
}
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants