I can't get webpack HMR to work in my vue 2 app

I got onboarded on a new project that is running vue 2 with webpack through node. It doesn't have hot reloading which surprised me, when I asked why they told me it was working at some point and broke....

How can i get the selected item - Vue2

i have one method to show an list itens, but i need to get the select item and show in a template, how could i do it method: fieldsForm() { return [ { name: "codigoConta", ...

Use a string key as v-model in v-item-group

It is possible to use a string key as v-model on v-item-group? in data area I have this payment: null, payments: [ { icon: 'mdi-alpha-p-circle-outline', type: 'paypal', ...

Vue2 pwa adding strange favicons

I have no idea how or why this is happening. In my vue.config.js file I have this setup: pwa: { name: "Example", themeColor: "#081d4d", backgroundColor: "#FFFFFF", ...

Change element prop in runtime

I have a chart component, and my job is to make a button to change it's type (eg. columns to pie), but i don't know how to change it on a button click event. Here's the structure of the component (the ...

How to access Vuex map helpers with Composition API

I am using Composition API in Vue2. Can you tell me how to access mapState with composition API? I want to watch for state changes as well. Hence I would have to use it within setup function as well (...

How to save text and image in Vuejs

I currently have an tool to set up which allows the user to upload an image, and then place custom text over it which displays and is editable in the browser. My question is, using VueJS, is it ...

Vue2 with typescript : unit test with jest

I'm running vue2 app (class component) with node 14.16.0 and I want to create unit tests to it using jest I installed jest 26, babel-jest 26.6.3, ts-jest 26.4.2, vue-jest 4.0.1 and @types/jest 27.0.3. ...

I want to translate strings in data

I'm translating my project. I translate js/json to HTML but I made v-for instead of copying 4 same HTML code made this : <div class="col-md-6 col-lg-4"> <div class=...

Writing Scoped SCSS for an external vue.js Library

I am using a library called vue-select and as usual, you need to import its CSS file to App.vue as a global import. Then I overwrite it with scoped SCSS. below is HTML and CSS code being generated. &...

Why does array methods are producing error? [closed]

I´m trying to make a simple calculator that allows multiple operations at once so I´m using an array to store the operations an another to store the numbers. The problem is that using any array method ...

How detect special characters in string : VueJS

I'm very new to VueJS, and I'm building an app with a signup and login setup. I want to display to the user if he has enter a special character like /[&^$*_+~.()\'\"!\-:@]/. To do that, I used ...

Do I need the @vitejs/plugin-vue dependency?

I'm trying to migrate a Vue2 project from Vue-CLI/Webpack to Vite. This migration guide says @vitejs/plugin-vue should be added as a dev dependency, but I'm not sure if I really need it, or if I do, ...