You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I trying to use this plugin with Gridsome, I figured the proper way to load it is in the main.js file like this:
import { VueReCaptcha } from 'vue-recaptcha-v3'
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
export default function (Vue) {
Vue.component('Layout', DefaultLayout)
Vue.use(VueReCaptcha, { siteKey: '...' })
}
When I do that though, it seems that the import {... ref, ...} from 'vue' in the ReCaptchaVuePlugin.ts file fails, specifically the line const isLoaded = ref(false).
When I trying to use this plugin with Gridsome, I figured the proper way to load it is in the
main.js
file like this:When I do that though, it seems that the
import {... ref, ...} from 'vue'
in theReCaptchaVuePlugin.ts
file fails, specifically the lineconst isLoaded = ref(false)
.Anyone know how to fix?
Here's the documentation for the Client API: https://gridsome.org/docs/client-api/
The text was updated successfully, but these errors were encountered: