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
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=script&setup=true&lang=ts
Module parse failed: The keyword 'interface' is reserved (7:0)
File was processed with these loaders:
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { RecaptchaV2State } from '../api'
|
interface SlotApi {
| /**
| * widget id
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=script&setup=true&lang=ts
Module parse failed: The keyword 'interface' is reserved (6:0)
File was processed with these loaders:
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { useChallengeV3 } from '../composables/challenge-v3'
|
error in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=script&setup=true&lang=ts
Module parse failed: Unexpected token (18:15)
File was processed with these loaders:
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| },
| emits: ["load", "error", "expired", "success", "update:widgetId", "update:modelValue"],
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=template&id=14e67f09&ts=true
Module parse failed: Unexpected token (5:27)
File was processed with these loaders:
./node_modules/vue-loader/dist/templateLoader.js
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| const _hoisted_1 = { ref: "root" }
|
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=template&id=14f4968a&ts=true
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
./node_modules/vue-loader/dist/templateLoader.js
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx,
openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
error in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=template&id=06a9d869&ts=true
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
./node_modules/vue-loader/dist/templateLoader.js
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=script&setup=true&lang=ts (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=script&setup=true&lang=ts) 7:0
Module parse failed: The keyword 'interface' is reserved (7:0)
File was processed with these loaders:
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { RecaptchaV2State } from '../api'
|
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=script&setup=true&lang=ts (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=script&setup=true&lang=ts) 6:0
Module parse failed: The keyword 'interface' is reserved (6:0)
File was processed with these loaders:
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { useChallengeV3 } from '../composables/challenge-v3'
|
ERROR in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=script&setup=true&lang=ts (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=script&setup=true&lang=ts) 18:15
Module parse failed: Unexpected token (18:15)
File was processed with these loaders:
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| },
| emits: ["load", "error", "expired", "success", "update:widgetId", "update:modelValue"],
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=template&id=14e67f09&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=template&id=14e67f09&ts=true) 5:27
Module parse failed: Unexpected token (5:27)
File was processed with these loaders:
./node_modules/vue-loader/dist/templateLoader.js
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| const _hoisted_1 = { ref: "root" }
|
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=template&id=14f4968a&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=template&id=14f4968a&ts=true) 3:27
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
./node_modules/vue-loader/dist/templateLoader.js
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx,
openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
ERROR in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=template&id=06a9d869&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=template&id=06a9d869&ts=true) 3:27
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
./node_modules/vue-loader/dist/templateLoader.js
./node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
| import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
Description
I created new project. Installed
npm i @unhead/vue
npm install vue-recaptcha@next
write
import { createApp } from 'vue'
import { VueRecaptchaPlugin } from 'vue-recaptcha'
import App from './App.vue'
const app = createApp(App)
app.use(VueRecaptchaPlugin, {
v2SiteKey: '6LdJwe0pAAAAAGxNiJVbTdIxQZ0vdsHGBlMOWTzA',
})
app.mount('#app')
in main.js
and when trying to run project by "npm run serve" getting the following errors:
npm run serve
INFO Starting development server...
ERROR Failed to compile with 6 errors 12:51:10
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=script&setup=true&lang=ts
Module parse failed: The keyword 'interface' is reserved (7:0)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { RecaptchaV2State } from '../api'
|
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=script&setup=true&lang=ts
Module parse failed: The keyword 'interface' is reserved (6:0)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { useChallengeV3 } from '../composables/challenge-v3'
|
error in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=script&setup=true&lang=ts
Module parse failed: Unexpected token (18:15)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| },
| emits: ["load", "error", "expired", "success", "update:widgetId", "update:modelValue"],
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=template&id=14e67f09&ts=true
Module parse failed: Unexpected token (5:27)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| const _hoisted_1 = { ref: "root" }
|
error in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=template&id=14f4968a&ts=true
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx,
openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
error in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=template&id=06a9d869&ts=true
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=script&setup=true&lang=ts (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=script&setup=true&lang=ts) 7:0
Module parse failed: The keyword 'interface' is reserved (7:0)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { RecaptchaV2State } from '../api'
|
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=script&setup=true&lang=ts (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=script&setup=true&lang=ts) 6:0
Module parse failed: The keyword 'interface' is reserved (6:0)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { useChallengeV3 } from '../composables/challenge-v3'
|
ERROR in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=script&setup=true&lang=ts (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=script&setup=true&lang=ts) 18:15
Module parse failed: Unexpected token (18:15)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| },
| emits: ["load", "error", "expired", "success", "update:widgetId", "update:modelValue"],
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=template&id=14e67f09&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV2.vue?vue&type=template&id=14e67f09&ts=true) 5:27
Module parse failed: Unexpected token (5:27)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| const _hoisted_1 = { ref: "root" }
|
ERROR in ./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=template&id=14f4968a&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/ChallengeV3.vue?vue&type=template&id=14f4968a&ts=true) 3:27
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx,
openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
ERROR in ./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=template&id=06a9d869&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./node_modules/vue-recaptcha/dist/components/Checkbox.vue?vue&type=template&id=06a9d869&ts=true) 3:27
Module parse failed: Unexpected token (3:27)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
| import { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue"
|
webpack compiled with 6 errors
Minimal Reproducible Example
https://github.com/0xAF4/recaptcha-test
System info
1
The text was updated successfully, but these errors were encountered: