A
A
Ankozar2021-05-11 07:52:18
Vue.js
Ankozar, 2021-05-11 07:52:18

How to connect vuelidate?

I'm learning vue 3 (before that I didn't work with vue at all). I took up vuelidate. I watch the vid. They say that the $v object should appear in vue dev tools.
Does not appear.

I connect vuelidate not through cli, but like this:

<script src="Vue.js"></script>
<script src="vuelidate.min.js"></script>
<script src="validators.min.js"></script>
<script src="app.js"></script>


js:
import useVuelidate from '@vuelidate/core' // пишет 'Cannot use import statement outside a module'


Vue.use(window.vuelidate.default) // пишет 'Vue.use is not a function'


If I do this: then it appears in vue dev tools I'm confused.

Vue.createApp(Submit, vuelidate).mount('.main')


609a0d112f680117250789.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question