Skip to content

Tag: vuejs2

Vue v-for and variable logic unclear

trying to code a chatPage from a tutorial, the tutorial was releases in vue 2.0 and now i wanna use the new vue 3.0 version. I have a messageContainer which will display the chatMessages. it has the messages as an array and it should loop over them and display each one as a messageItem. Yet, the syntax with the v-for

Mounting a Components Library in Vue 3

I am new to Vue.js and trying to migrate a Vue.js 2 migration to Vue.js 3. I have read the Vue.js instructions on how to that carefully; however, the application that I need to migrate contains a Component Library out of Vue.js 2 components that I need to mount in the migrated app aswell. This is the Vue.js 2 main.js

Calling method in my store returns empty observer object

I am new with Vue. I have a Vue component like below. The return value of my function getBuildingsByOwnerRequest is unexpected: It returns an empty observer object. Only if I run getBuildingsByOwnerRequest again I receive the expected output from my store action. Could this be a reactivity problem? buildings.js (store): Answer The object is empty at the time it’s logged.

How can I use leaflet-polylinedecorator with a vue app

I have a Vue 2 sample project at This is a simple import issue for my code that I am not sure how to handle. A couple of things I have tried are to modify the code to do: but this results in a build error: To the index.html, I also tried adding: but that results in the runtime

Vue-Router URL from external source always redirects to “/”

I am running Vue 2 directly off the Vue dev server. I am trying to enter a vue route (vue-router) from an external url. For some reason I don’t know, vue-router always redirects my request and handles it as if it comes from “/”, which automatically redirects to “/login” I found a similiar questions here ( but there is no