0

Установил vuelidate: npm install vuelidate main.js:

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './index.css'
import './assets/tailwind.css'
import Vuelidate from "vuelidate";

createApp(App).use(store).use(router).use(Vuelidate).mount('#app')

Пытаюсь в компоненте вывести переменную $v, но ничего не происходит. В консоли предупреждение:

[Vue warn]: Property "$v" was accessed during render but is not defined on instance. 
  at <Home onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > 
  at <RouterView> 
  at <App>
2
  • import Vuelidate from "vuelidate"; так разве подключается? Смотрите документацию github.com/vuelidate/vuelidate 6 сен 2021 в 18:46
  • Переустановил, но всё равно не работает.
    – Alex _
    7 сен 2021 в 7:47

0

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Посмотрите другие вопросы с метками или задайте свой вопрос.