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
I'm able to get the build working on your minimal example by moving @unhead/vue from devDependencies to dependencies and adding @vue/compat to the dependencies as well. I think this suggests that the alpha version has not finished migrating to vue 3 and is not ready for use yet
Description
In main.ts
import { VueRecaptchaPlugin } from 'vue-recaptcha/head';
ERROR in src/main. ts
TS2307: Cannot find module ‘vue-recaptcha/head' or its corresponding type declarations.
Minimal Reproducible Example
Use Vue CLi + TS .
define
import { VueRecaptchaPlugin } from 'vue-recaptcha'; const app = createApp(App); app.use(VueRecaptchaPlugin, { v2SiteKey: '6......._yj', });
npm run serve
then got fail.System info
System:
OS: macOS
Binaries:
Node: 18.12.1
npmPackages:
vue: ^3.0.7,
vue-recaptcha: "^3.0.0-alpha.6",
typescript: "~4.5.5",
The text was updated successfully, but these errors were encountered: