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

301
Visualizações
Vue3 and Vue-Router cannot access the parameters with the $route object in production but can in dev

I'm having some bad time with the build of a Vue3 app for production, literally 90% of my scripts are broken in production and that's related to my variables being undefined in production, I really don't know why this occurs. But for one of them I have a concrete example :

I access a parameter value in my route using this.$route.params.myParameter which works totally fine in dev mode, but in prod it's undefined and crash the whole thing

I can edit the question with code snipets but I don't think it's required

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

0

Figured out myself what was wrong with the whole stuff,

fitst I was using this.myObj in some component's template which = bad, remove the this, sadly Vue doesn't warn you about that.

Secondly I remade my inputs because using v-model with them does't worked in prod for a mysterious reason, so now it use $event.target.value on v-on:input

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