Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

300
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!