Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

141
Visualizações
Vue 3 mobile event listeners and swipe

In Vue 3, I want to trigger a function when a user swipes left / right. (I made a calendar and interested in having months changed on swiping)

I found this package: https://github.com/robinrodricks/vue3-touch-events (npm install vue3-touch-events) but it's not working and I get the following errors:

and imported the relevant packages in main.js:

import Vue from "vue";
import Vue3TouchEvents from "vue3-touch-events";

and in public/index.html:

    <script src="https://raw.githubusercontent.com/robinrodricks/vue3-touch-events/master/index.js"></script>

after that, in main.js If registered as:

createApp(App)
  .use(Vue3TouchEvents)

then I get the error: "Maximum recursive updates exceeded in component ..." And the event won't be fired.

If registered as

Vue.use(Vue3TouchEvents);

then I get the error "export 'default' (imported as 'Vue') was not found in 'vue'" And the event still won't be fired

What's wrong? How to implement it right or make a solution in another way? (@starttouch and mobile event listeners seems to not be supported in Vue 3)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I Think You Installed It Wrong Way

  1. npm cache clean --force
  2. npm install vue3-touch-events

Also Remove That script src line from index.html. I Hope This Will Help Your Query.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda