Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

302
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda