Skip to main content

Questions tagged [vue.js]

Vue.js is an open-source, progressive JavaScript framework for building user interfaces that aims to be incrementally adoptable. Vue.js is mainly used for front-end development and requires an intermediate level of HTML and CSS. Vue.js questions are highly version specific and should always be tagged with [vuejs2] or [vuejs3] in addition to this tag.

vue.js
Filter by
Sorted by
Tagged with
0 votes
1 answer
12 views

Vue Router does not update the path in the address bar

I'm using "vue": "^3.4.21" and "vue-router": "^4.4.0" main.ts import { createMemoryHistory, createRouter } from 'vue-router' # ... const app = createApp(App) ...
0 votes
2 answers
18 views

Re-render a OpenWeatherMap component when switching language in Vue 3

I am a beginner using Vue 3, to learn it I am developing a simple weather webapp using OpenWeatherMap API. I have added multilanguage support using vue-i18n library and everything works fine. But ...
44 votes
6 answers
131k views

Getting form data on submit?

When my form is submitted I wish to get an input value: <input type="text" id="name"> I know I can use form input bindings to update the values to a variable, but how can I just do this on ...
0 votes
1 answer
2k views

Property 'env' does not exist on type 'ImportMeta'.ts(2339)

Recently i begin a project using vue.js and vite, everything run normal when using npm run dev but when npm run build its keep give me error Property 'env' does not exist on type 'ImportMeta'.ts(2339) ...
1 vote
1 answer
590 views

How to use a custom theme in Vue-Echarts

I am working with Vue 3 (Composition API) and using 'ecomfe/vue-echarts' to display my data. I copied the example from the documentation and it worked perfectly. The only thing I don't get working is ...
1 vote
1 answer
3k views

Custom style of vue multiselect component

I have added a vue multiselect component... But I want to customize it with css styles. I already have added some css style but can not do everything I want. Like I want to change the option height, ...
0 votes
0 answers
57 views

TypeError: Cannot read properties of undefined (reading 'prototype') in vue3 [closed]

TypeError: Cannot read properties of undefined (reading 'prototype') at node_modules/express/lib/response.js (express.js?v=e4d1ef94:71335:49) at __require2 (chunk-44EBS5VC.js?v=e4d1ef94:25:50) ...
42 votes
9 answers
91k views

Quasar Error: Cannot find module 'ajv/dist/compile/codegen'

(node:21216) UnhandledPromiseRejectionWarning: Error: Cannot find module 'ajv/dist/compile/codegen' loader.js:815 Function.Module._resolveFilename internal/modules/cjs/loader.js:815:15 loader.js:...
0 votes
3 answers
3k views

Laravel Inertia Shared Data not updating

I have a laravel breeze app up and running using InertiaJS scaffolding. I'm using a middleware to pass general data to the layout. The issue is the following : A user can change the country, and if ...
1 vote
2 answers
36 views

How to use provide in Vue's optional API to achieve bidirectional data transfer of basic data types?

There are two components. I want to implement two-way data transmission between parent and child by providing a responsive object. However, I found that the object type can correctly implement ...
1 vote
2 answers
2k views

How to emit an event with vue-chartjs?

I use vue js and I display a graph with chartjs. When I click on the graph I want emit an event for get data in parent component. My onClick function works but not the event. Do you have an idea of my ...
0 votes
1 answer
1k views

Jest error Cannot find module '@babel/preset-env'

I am having trouble using Vue Jest Unit Test. This is the most complicated installation I have ever done, which was to install Jest Unit Test and get it running. So far, I have created done the ...
0 votes
0 answers
20 views

How to add an extra class on highlightedwhich is added by highlighted props vuejs3-datepicker

I am using import Datepicker from 'vuejs3-datepicker'; and I am using highlighted props to highlight specific dates but I want to color highlighted dates with different color but 'vuejs3-datepicker' ...
0 votes
0 answers
11 views

How to style a iframe scrollbar in vue when utilziing a reactive variable for contents

I am loading an email template in to my application using the following code: <v-col class="px-10"> <div v-if="selectedEmailLoading" class="h-100 w-100 d-flex ...
0 votes
0 answers
15 views

Best/Simplest Way to Incorporate User Routing or a Front-End Framework into an Existing Project [closed]

I am making a card game with Node.js, express, and socket.io. The game is written in 4 files with a server.js, index.html, index.js and style.css and works for what it is (the index.js handles the ...
0 votes
1 answer
32 views

Loading an email template into a vuetify app

I am displaying email from an outlook email using MS Graph API. The content of the body is in html format so I am trying to add it via the v-html prop such as: <div v-html="emailContent"&...
0 votes
1 answer
27 views

vue.js and Element Plus - use el-select with key

I intend to make a drop-down menu that can have three values: The first can be 'Father' or 'Mother' depending on the condition returned by the autoGender(index) method. The second is always 'Father'. ...
0 votes
0 answers
12 views

How to Add a Trailing Slash to URLs in Nuxt 3

I have a Nuxt 3 project with a directory public/urlName/ containing an index.html file. When the page is accessed without a trailing slash at the end of the URL, the files and styles located in the ...
18 votes
3 answers
10k views

Nuxt generate FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I'm trying to nuxt generate my static (with dynamics url params) html pages. Here's my route config in the nuxt.config.js file routes: function () { let domain = 'https://example.com' if (...
0 votes
0 answers
13 views

iag-grid data is not refreshing when i change the data from an external component

my aggrid is getting its data from a pinia store, bras is an array of the customer's branches const { selectedCustomer } = storeToRefs(customerStore) const rowData =selectedCustomer.value.bras when ...
0 votes
1 answer
652 views

vue-chartjs register plugin to only one chart component

I have a chart as its own Vue component (Vue 3 and using composition API), and I would like to add in the datalabels plugin to this chart only. If I register the plugin outside the chart data or ...
6 votes
1 answer
244 views

How to check if navigateTo was called in nuxt.js

I'm working on a Nuxt.js project and using Vitest for unit testing. I need to verify if the navigateTo function from Nuxt.js is called with a specific path in my tests. Here's the relevant part of my ...
0 votes
1 answer
436 views

Is there a way to access the position of a vueuse UseDraggable renderless component in the script block?

I have a component that used Vueuse's UseDraggable renderless component. I use the renderless component because I can then use the storage-key and storage-type properties out-of-the-box. This works ...
0 votes
0 answers
20 views

I have a vue.js & three.js code and how to hidden coordinate part in three.js?

Everyone, I have a vue & three.js code. and i wanna hidden the part which shows in the picture. I have no experience in three.js and i don't know how to fix it. i used scene, camera, renderer, ...
0 votes
1 answer
46 views

How does work Vue v-model with update:modelValue and how to prevent it from default logic depending on modal

Can someone explain to me if v-model is: :modelValue update:modelValue then what happen when v-model with update:modelValue used both. So in my code I have this component: <script src="https://...
157 votes
34 answers
333k views

How can I solve error "gypgyp ERR!ERR! find VSfind VS msvs_version not set from command line or npm config"?

I want to install Adonis Admin. When I run npm install I get: > [email protected] install C:\laragon\www\adonis-admin\node_modules\sqlite3 > node-pre-gyp install --fallback-to-build node-pre-gyp ...
0 votes
0 answers
17 views

Nuxt3 clears inputs autocomplete

Clear Nuxt3 project. When i do "hard refresh" (cmd+shift+r) there are 3 states of form inputs: Empty, Autocompleted from browser, Empty. Example and code below: HTML: <form> <...
0 votes
0 answers
24 views

Twilio error while accepting the incoming call

Error of @twilio_conversation…js?v=582255ec:11005 Uncaught (in promise) Error: Forbidden at Upstream2._callee$ (@twilio_conversation…v=582255ec:11005:27) at tryCatch (chunk-NHAX666J.js?v=...
0 votes
0 answers
47 views

Dropdown menu overlaps with component in Vue app

I had a Vue electron app, in which Home view component has 3 child components which are in single column one after the other, I have a b-dropdown in middle component when I scroll up the opened ...
1 vote
2 answers
874 views

Relationship between two tables - Laravel, Inertia, Vuejs

I'm new to the subject, I have two tables related to each other, one for departments and one for users, I want to know how many users there are in each department DepartmentController.php public ...
4 votes
2 answers
13k views

Vue 3 template refs dynamic name

I noticed that to make a template ref in Vue 3 composition api <script setup>, I should make a variable name with the exact same as the ref value. For example in Vue 3 documentation: <...
-1 votes
2 answers
36 views

Simple concat two array of objects problem

How can I remove the middle ] and [? plan_cookie = plan_cookie.concat(JSON.stringify(protect_plan_from_db)); alert("2.1 after CONCAT plan_cookie = " + JSON.stringify(plan_cookie)); /* 2.1 ...
0 votes
1 answer
29 views

Best way to implement conditional tabbed routing in vue

What I'm trying to implement is routing with tabs where the available tabs change depending on the user type (upon authentication the user type gets stored in a pinia store). This is what I ended up ...
1 vote
1 answer
376 views

Is there any way to route to a html file with Vue 3 router?

I am using Vue 3. I need to link a landing page static html page to home route / which totally different from vue 3 original index.html. The HTML file contains lots of 3rd party CDN stylesheets and ...
2 votes
3 answers
5k views

Missing ref owner context in production

I'm using VueJS 3 in options API and while the application works locally, it does not work well in the shared hosting (when built). The warning is thrown in the console: [Vue warn]: Missing ref owner ...
-1 votes
1 answer
21 views

vue router installations to an existing Vue.js project returning error

npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/vue npm error ...
0 votes
1 answer
3k views

Vuejs - Primevue - Display the property of an array of object in a Datatable Column

I'm new to Primevue, Here is my code : Vue File <!-- users here is an array of User object --> <DataTable :value="users" :rows="10" :paginator="true"> ...
-1 votes
0 answers
41 views

Cannot read properties of undefined (reading 'Vue') at initBackend, how can i solve this error?

I’m working on a Vue 3 application using Pinia for state management, and I’m encountering an issue where added messages are not rendering on the screen. Additionally, I’m getting a persistent error in ...
5 votes
1 answer
2k views

How to get context vnode in vue 3 directives

Сan't get context from directive <template lang="pug"> div(class="form") select(name="name" v-model="form.input" v-select="form.inputs&...
1 vote
2 answers
918 views

is there any way to use unplugin-vue-components with quasar-cli vite version?

I had used this pakage with the vite plugin of quasar but I need to migrate to its vite cli and I tried to do what is suggested like this this: //quasar.conf.js vitePlugins: [ [ "...
0 votes
0 answers
31 views

Vue memory leaks in table using dynamic components

In our Vue/Vuetify 3 project we have generic table component which conditionally renders different components as table cells. Unfortunately, tables are causing big memory leaks. It is a big component, ...
-1 votes
0 answers
22 views

a intresting questring,for vue's 'name' [closed]

In Vue, multiple routers use the same Vue file, and they will click to switch, just like tab switching, but they are using the same. Vue file. How to use keep alive to cache this. Vue file in my vue ...
4 votes
2 answers
10k views

How to catch network errors with Axios request interceptor?

Our Vue application had some problems and I noticed in Sentry logs that probably the network has been unreliable: Error: Network Error Error: Request aborted I would like to show warning to the user, ...
1 vote
1 answer
53 views

How to use Pinia with a Map of table configuration objects

I am using Pinia to manage the state of different DataTables throughout my application. It's possible for multiple tables to be opened "on top" of each other (i.e. in overlay(s) over each ...
3 votes
2 answers
4k views

httpsCallable is not a function when calling a Firebase function

I'm trying to implement a role-based authentication using Firebase auth and Firebase functions. Right now I have a registration form that is working as supposed and now I'm trying to add a form that ...
0 votes
2 answers
271 views

Uncaught Error: Invalid date: 21/01/2023 in react using DateTIme Picker

I cannot tell what the problem is here, because i have followed the documetation to implement that react date time picker, but when i select a date it shows invalid date Uncaught Error: Invalid date: ...
0 votes
0 answers
77 views

Do we need to clear class to prevent memory leak?

In the following script, this class is used to store a lot of Geojsons object (for google maps api): class MapService { private layers: Map<string, google.maps.Data> = new Map() ...
0 votes
2 answers
496 views

Keycloak + SPA as client (Vue) + Spring Cloud Gateway as resource server + Spring Boot Microservices

I want my project to work like this: Everything fine except for Vue(axios) returns 401 error when I request some data from microservice through gateway. Authorization token with 'Bearer' is set for ...
70 votes
23 answers
130k views

Vue Router return 404 when revisit to the url

I just enable Vue router history mode. And it work fine when I visit to vue routing via v-href or href. But, when I try to refresh that page or go directly from browser address bar, it just return 404....
0 votes
0 answers
19 views

Handling Emits with Vue.extend in TypeScript

I'm following the Vue 3 migration guide and trying to declare all the $emit events in the emits array. My component is written in TypeScript, and I'm still using Vue.extend. However, I'm encountering ...

1
2 3 4 5
2164