108,279
questions
1
vote
1
answer
26
views
How to correctly type useTemplateRefsList in a recursive component in Vue 3?
I'm working on a recursive Vue 3 component using the Composition API and the useTemplateRefsList function from @vueuse/core.
My goal is to collect references to each instance of the recursive ...
0
votes
0
answers
18
views
How can I resolve a TypeError reading 'app' error when using Storybook, Vue, Vite, and Pinia?
I have a simple reproduction case at https://github.com/eric-g-97477-vue/dev-tools-plugin-test
To create this, I did the following...
(1) I created the default vue Project
$ npm create vue@latest ...
1
vote
1
answer
18
views
Displaying a checkbox in Vue Quasar Tree
How can I remove the checkbox display for parent nodes, i.e. nodes that have children in the component Tree.
I tried it through the class.
.q-checkbox__inner) {
display: none;
But then all the ...
0
votes
0
answers
22
views
What is 'effect' on Vue computed properties
If I inspect a computed property in Vue 2.7, I can see that, besides the well-known .value property, there's also .effect. I wasn't able to find any information about it, except that it's deprecated ...
0
votes
1
answer
13
views
Vue filtering an array in for loop
I'm sure this worked in the past and wasn't complicated so I'm not sure what's going wrong with this filtering in Vue3:
<script setup>
import { ref } from 'vue'
const faqs = [
...
-1
votes
0
answers
15
views
Handling Zoom and Decimation in ECharts with Vue.js and Backend Data Constraints
Enhanced Version with Formatting
Problem Description
I'm using ECharts with Vue.js + Quasar, along with a backend server that manages data decimation (e.g., keeping only 1 point out of n to return a ...
-1
votes
0
answers
19
views
ESLint migration issue while converting extends to v9
I'm trying to convert my .eslintrc.cjs to eslint.config.js with migration of ESLint.
My current config file has
extends: ['eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:@...
-3
votes
0
answers
33
views
How to use Laravel's view components in Vue.js loops?
I have this component in my Laravel project in the file 'loading.blade.php':
<span><i {{ $attributes }}></i> {{ $slot }}</span>
I'm trying to use it in a Vue.js loop:
<tr v-...
0
votes
0
answers
12
views
Running Vue + Vite SPA on Android WebView API 29: Issue with Loading ESM Modules from Local Storage
I'm trying to run a Vue + Vite + TypeScript project as a production-ready SPA on Android WebView (API 29) by loading it from an SD card. However, I've encountered an issue where the WebView seems ...
0
votes
1
answer
42
views
Is there any way to get stored cookies from a different domain?
I'm developing frontend with vuejs and backend with nestjs. I'm hosting frontend at localhost and hosting backend at another domain (so called "example.com"). So vuejs is running on "...
0
votes
1
answer
51
views
How to dynamically apply a class to a child component?
I have a child component within a parent component. Whenever the child component is clicked, I need to apply a class called .selected to it.
Parent.vue
<template>
<ol>
<li v-for=&...
0
votes
1
answer
29
views
How to get the value from a proxy object in Vue js
I am trying to access the value of the "color" from a proxy object.
This is my code
<script setup>
const props = defineProps({status:Object});
function getColor(items){
const ...
0
votes
0
answers
14
views
Issue with Nuxt’s useFetch returning null during SSR but working fine on the client
I am using Nuxt and have wrapped the useFetch function to handle API requests with a custom setup for headers, error handling, and other configurations. Below is my implementation:
// Core API wrapper
...
0
votes
1
answer
19
views
custom component not rendering: invalid vnode type
I've defined a custom vue component in Dropdown.vue:
<template>
<q-select
v-model="model"
use-input
use-chips
input-debounce="100"
:options="...
-1
votes
1
answer
63
views
Use a Symbol as an object value in JavaScript [closed]
What is the purpose of using a Symbol as a property value in a JavaScript object rather than just a normal value?
For example, in Vue a text VNode has a Symbol as an object value. Why is this, and ...
-1
votes
0
answers
13
views
Vue js with traefik [closed]
I built a client web app, with vuejs as frontend and node js as backend and with Traefik as proxy, but now I have the problem that when I navigate to a page in my app, e.g. /manage/employee
then ...
0
votes
1
answer
31
views
How to wait for a prop to change as part of a function?
I have a Form.vue component that is used in other parent components to submit data from the user to the server.
The Form.vue has a prop to indicate whether its parent component has passed its own ...
2
votes
1
answer
242
views
ShadCN-Vue installation - did not recognize object of type "TSInterfaceHeritage"
I'm trying to install ShadCN for VueJS but I'm encountering a weird error after successful installation.
I've followed each step of the installation guide under:
https://www.shadcn-vue.com/docs/...
0
votes
0
answers
16
views
How to efficiently initialize pinia state like user auth in nuxt3 via api call
I have a nuxt 3 app, I use pinia to manage the user authentication state.
I defined the store like this
interface AuthUser {
id: number;
username: string;
email: string;
roles: string[]...
0
votes
0
answers
7
views
pageTransition after route change DOM not Updated - Nuxt 3
I have a component that I put in the layout. The component calculates the size of the layout and does something simple:
components/info.vue :
<script lang="ts" setup>
const info = ref()...
0
votes
0
answers
17
views
Calling contentWindow.postMessage on iframe has no effect
In the vue component below sending a message to an iframe using the iframe.contentWindow.postMessage(...) call has no effect.
The component waits for a message from the iframe and sends a response ...
0
votes
0
answers
15
views
Getting Vue draggable is not defined error in mobile browser
Using vue3 draggable - working fine in laptop browser but where as in mobile browser, getting vue draggable is not defined error.
const mainSortBundleApp = createApp(sortBundleApp);
mainSortBundleApp....
2
votes
0
answers
23
views
Read props of a Child component vue
Im currently writing tests for a Vue component (Calendar.vue) for that I need to get the array generated by the fillArray() function. My aproach is to read out the props of the Day.vue component but ...
1
vote
1
answer
28
views
TypeScript configuration issue in a Vue 3 app
I am trying to add TypeScript to a large Vue 3 app which is using the options API. I think I have things largely working ok (I can serve the app and see it in the browser), but there seems to be a ...
1
vote
1
answer
37
views
disable-devtool package not updating ref values after route navigation
I am using Vue 3 in my application and have implemented the disable-devtool package to detect when the browser’s developer tools are opened or closed. Everything works fine when I first load the ...
1
vote
1
answer
35
views
How to customize the scale for bar charts?
I'm learning to use https://www.npmjs.com/package/vue-chartjs
I'm trying to create a bar chart with y-axis scale ranging from -20 to 70. I'm unable to see the bars in the negative range. I tried using ...
0
votes
0
answers
24
views
Unable to catch/export some cookies
In attempt to automation of some job on a certain site, I use php-webdriver. Target website is written in Vue. For certain POST query this site uses cookies, but this cookies does not present nor in ...
0
votes
0
answers
11
views
Flowbite bug: why does this dropdown have to be clicked twice before edit modal appears?
This is the dropdown button
<td class="flex items-center justify-end px-4 py-3">
<button
:id="`${el.id}-...
1
vote
0
answers
33
views
Websocket Connection errors in a Vue and express JS Application
I have an app with an express-server running on the backend, I have tried hosting the backend on ngrok as well but I still get a websocket error: The post methods are working fine and it does return ...
0
votes
0
answers
25
views
Installing Airbnb eslint config in TS-enabled Vue application
I have a problem, when I create an app through create-vue and then try to install Airbnb https://www.npmjs.com/package/@vue/eslint-config-airbnb, I get an error I can't fix it.enter image description ...
1
vote
0
answers
20
views
Nuxt 2.17 server getting slow and stop working
I have a bunch of Nuxt 2.17 + Vuetify 2 apps that all share same core. (just imagine a SaaS app like Wix or Shopify where the cms is on a separate server and the actual user-end app is on another one. ...
0
votes
1
answer
28
views
Why is my Ionic app not working on Android 7 with Vue?
I created a new ionic project and selected vuejs, I didn't do anything except:
ionic build
ionic cap add android
ionic cap copy
ionic cap sync
ionic cap open android
I have an Android 7 virtual ...
-1
votes
0
answers
23
views
Unable to upload image to aws s3 from vuejs and express and paste the url into database
<template>
<LeftSideBar></LeftSideBar>
<div class="create-post">
<h2>Create a New Post</h2>
<!-- Form for post data -->
<form @...
-4
votes
1
answer
52
views
Getting Randomly 30+ seconds Delay
When i make API request, sometimes i get unusual response times. More specifically 30+ second delay. After some troubleshooting, i got that Transfer Start or (TTFB) takes upto 30+ seconds randomly. ...
2
votes
1
answer
22
views
I want to disable previous months of selected month in multi-calendars in https://vue3datepicker.com/
I want to disable previous months of selected month in multi-calendars. If in first calendar suppose I've selected May month and when I open another calendar, month menu then it should show Jan, Feb, ...
1
vote
1
answer
46
views
FastAPI and vue integrate stripe payments, can I ditch stripe elements?
Currently, our project uses FastAPI as the backend and Vue as the frontend. We generate a payment intent ID on the backend, and the frontend creates the corresponding payment using this ID. After the ...
-1
votes
0
answers
18
views
Vue reactive object call function on state change
I have the following vue object in my component and I also have the following function that makes use of the object.
what happens is that every time I change some nested property of the object the ...
1
vote
1
answer
40
views
Module '"vue"' has no exported member 'defineAsyncComponent'
I am trying to convert a large Vue3 app, using the Options API, to TypeScript and am running into a few difficulties. I wonder if someone might give me some guidance. I understand that it is ...
-1
votes
1
answer
33
views
How Nuxt is diffrent from Vue when it comes to reactive variables?
I used Vue for years for my frontend (amateur) development and decided to give a try to Nuxt.
After going though the tutorial I thought I had a general idea and created a simple project where:
I ...
-1
votes
1
answer
46
views
Cors Error when calling microservice from Vue frontend application
I have a problem with a call from vue to a spring boot microservice.
Locally it works, while in the test environment where the call is intercepted by KrakenD I have a CORS error
This is my ...
1
vote
1
answer
27
views
In Video.js, Video is starting playing from beginning when the progress bar is clicked
After the browser is launched, select a video through the button and add it to video.js. The video can be played normally. But when dragging the progress bar, it always starts playing from beginning ...
0
votes
1
answer
17
views
Nginx not redirecting to my DRF backend (Vue js frontend)
I am trying to deploy a Vue app with DRF as backend. I am using Nginx and gunicorn.
Gunicorn is running and serving http://127.0.0.1:8000. For example if i do curl http://127.0.0.1:8000/api/posts from ...
0
votes
1
answer
17
views
Echart object changed from eChart to '<div>..' Uncaught TypeError: myChart.value.setOption is not a function
I'm using vue to display the data using dynamical line chart with VUE. In parent vue, I'm requesting the server to get each data point, and then pass them to the child VUE. Now I come across an issue ...
0
votes
0
answers
22
views
How to log the version of my Nuxt app on server startup?
I want to write out a log line that reads "started version 0.4.0" when I start up the server, where the version is taken from the package.json file.
I defined a module and I'm passing it the ...
0
votes
0
answers
24
views
VueJS/Vue Router/Firebase - router.push() loads new page temporarily, then immediatley goes back to the Register page
I have a page that allows a user to register an account. Upon clicking submit, the user should be redirected to a Library page. However, what is happening is the Library page will flash on the screen ...
0
votes
3
answers
49
views
vue3 - responsive background image from variable
I'm using Laravel and Vue, in the blade template I'm calling a Vue component which I'm passing some props too, to try and be able to update the background image depending on window width:
Blade ...
0
votes
1
answer
41
views
"getActivePinia()" was called but there was no active Pinia
I get the following error in the command line when having ssr-started (laravel 11 + vue + inertia) and trying to navigate after php artisan Inertia:start-ssr and after npm run build:
The server starts ...
0
votes
1
answer
22
views
Check auth status of users in a Vue.js Frontend with an HTTPOnly JWT Token in ASP.NET Web API
I'm building a web application with an ASP.NET Web API backend and a Vue.js frontend. I've implemented JWT authentication and am storing the access token in an HTTPOnly cookie for security reasons. ...
0
votes
0
answers
13
views
Cannot resizable table on tinymce-vue
I first time use tinymce editor on vue. I add all plugins and make toolbar. everything work successfully but after creating table i cannot change resize columns. how to do this? I try many times. It ...
0
votes
2
answers
29
views
Laravel and Vue have performance error with LCP
I have a project with Laravel v6 (mix) and vueJs v2
It has LCP error
My website LCP is a hero image that I used it like this
<picture>
<source media="(min-width: ...