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

useReCaptcha composable returns undefined #561

Open
vandelpavel opened this issue Nov 9, 2021 · 0 comments
Open

useReCaptcha composable returns undefined #561

vandelpavel opened this issue Nov 9, 2021 · 0 comments

Comments

@vandelpavel
Copy link

Hi, i'm developing a website with Quasar framework v2 (based on vue 3).
I've created a dedicated bootfile in order to add the plugin to the project.

import { boot } from 'quasar/wrappers';
import { VueReCaptcha } from 'vue-recaptcha-v3';

export default boot(({ app }) => {
  app.use(VueReCaptcha, {
    siteKey: 'my-key-***********',
  });
});

Then inside my composable i added a button and called the composable inside the setup.
When clicking the button the console will log the result of the composable which is undefined.

Also wen the page loads this warning will appear:

[Vue warn]: injection "Symbol(VueReCaptchaInjectKey)" not found. 
  at <RegistrationPage onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <QPageContainer> 
  at <QLayout view="lHh Lpr lFf" > 
  at <MainLayout onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <App>

Any ideas on what could be the problem here?
Thanks! :)

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

No branches or pull requests

1 participant