Replies: 1 comment
-
Nevermind I ended up figuring it out! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I am currently running into an error with this package messing up my testing environment.
I have implemented this package within my Vue 3 project following documentation instructions:
`
import { VueRecaptchaPlugin } from 'vue-recaptcha'
app.use(VueRecaptchaPlugin, {
v2SiteKey: 'my-site-key',
v3SiteKey: 'my-site-key'
})
`
and then in my other component I have:
`
import { useRecaptchaProvider } from 'vue-recaptcha'
import { Checkbox } from 'vue-recaptcha';
useRecaptchaProvider()
`The problem I am facing is that my unit tests that used to work no longer work as I receive this error:
TypeError: Unknown file extension ".vue" for ...\node_modules\vue-recaptcha\dist\components\ChallengeV2.vue
I have tried looking around but haven't found anyone with a similar problem now a solution.
I've tried mocking the package, excluding the package but have not had any success so far.
Maybe Im missing something.
Hoping someone could help me out here! Thank you and any help is very much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions