B
B
ByJumping2022-01-11 09:57:25
Vue.js
ByJumping, 2022-01-11 09:57:25

Connecting a library for vue 3?

I'm trying to include the vue3-touch-events library for vue3

in main.js

import {createApp} from 'vue';
import App from './App.vue';
import "./assets/scss/app.scss";
import store from './store';
import axios from 'axios';
import Maska from "maska";
import Vue3TouchEvents from "vue3-touch-events";

const app = createApp(App)
app.use(Maska, store, axios, Vue3TouchEvents)
app.mount('#app')


According to the guide, I use the v-touch: swipe.left directive

and an error appears

61dd2a15519c5571589132.png

Help me figure it out, on the Vue2 project I used the same library only for version 2 and everything was fine

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2022-01-11
@ByJumping

app.use(Maska, store, axios, Vue3TouchEvents)

Well, what the hell? Run to read the documentation .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question