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

205
Visualizações
idle-vue-3 is NOT really "vue 3"

The github repositories mentioned in https://www.npmjs.com/package/idle-vue-3/v/1.0.1 do not have issues page. So, I guess I have to post it here. The documentation provided is not really Vue 3 at all. Many of the APIs used in the documentation are obsolete. Things like import Vue from 'vue';, Vue.use, etc. WTF is that project owner doing!?!

I bump into error with the following code snippet:

  app.use(IdleVue, {
    eventEmitter: Vue,
    //store,
    store: Store,
    idleTime: idleTimeInMillis,
    startAtIdle: false
  });

Store is imported from another .js file:

export default async () => {
  const Store = createStore({
    modules: {
      rules,
      utils
    },

    // enable strict mode (adds overhead!)
    // for dev mode only
    state: {
      clients: []
    },

    mutations: vuexfireMutations,

    actions: {
      bindClient: firestoreAction(async (context, ref) => {
        return await context.bindFirestoreRef("clients", ref);
      })
    },
    strict: process.env.DEV
  });
  return Store;
}

The browser console shows the following error:

boot error: TypeError: r.registerModule is not a function

which happens on line app.use(IdleVue, {. Any advice and insight is appreciated

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

0

What do you mean obsolete? It's scheduled to be deprecated but it's not deprecated yet.

WTF is that project owner doing!?!

The project owner did what he wanted, create an idle-js wrapper for Vue.

Vue 3 was officially release in September 2020.

idle-vue existed even back in 2019.

If you checked the repo, you'd see it was a fork.

The forked repo is released under the name idle-vue: https://www.npmjs.com/package/idle-vue

idle-vue-2 is taken but empty: https://www.npmjs.com/package/idle-vue-2

idle-vue-3 is the fork version with more changes applied to it.

Check the issue: https://github.com/soixantecircuits/idle-vue/issues/49 for your question.

Just use idle-js yourself or make a fork of your own and support Vue 3.

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