Struggling with building a Vue3 app for production as 90% of my scripts are broken due to variables being undefined. It's baffling why this happens. One concrete example is:
In dev mode, accessing a parameter value in my route using this.$route.params.myParameter
works perfectly fine. However, in production, it's undefined and crashes the entire app.
I don't believe adding code snippets to the question is necessary at this point.