108,131 questions
0
votes
0
answers
56
views
Configuration of EmailJS works in localhost but not in production
I am developing a project with Vue.js, so to manage sending email through the contact form instead of the backend, I am using Email.js. I followed steps as below:
Add an email services
Create an ...
0
votes
1
answer
175
views
Nuxt 3/Nuxt UI UNavigationMenu won’t highlight hash‐based section on page reload
I’m using the Nuxt UI <UNavigationMenu> component in my Nuxt 3 app to render a header nav that scrolls to sections via hash links within my pages/index.vue (#about, #products, #news, etc.). ...
0
votes
1
answer
304
views
Styling problem with Primevue with dialog component
Im trying to implement a simple dialog, but the styles dont apply like it would do
This is the component
<template>
<div class="card flex justify-center">
<...
1
vote
1
answer
71
views
Why are fallthrough attributes applied to both the root element and the one you specify with v-bind="$attrs"?
I've been trying to use Vue's Fallthrough Attributes to pass an event listener down to a button with v-bind="$attrs". After hours of debugging I found out that the event listener is ...
0
votes
1
answer
267
views
How to properly import Fabric.js in Vite (Vue 3 + Fabric 6.7) — Canvas is undefined
I’m building a Vue 3 project with Vite, and trying to integrate fabric.js (v6.7.0) to allow drawing on a PDF rendered using pdf.js.
Here’s the problem:
I installed fabric via:
npm install fabric
Then ...
0
votes
0
answers
64
views
Which is the recommended way to import Vuetify Types and Interfaces?
I have following code
<script setup lang="ts">
// Imports...
const btnProps = {
color: 'primary',
variant: 'outlined',
...
}
</script>
To avoid TS complaints I have to ...
0
votes
1
answer
88
views
How to access component from a custom directive?
The goal is to have some sort of reusable directive, hook, utility, that would allow me to auto-focus on a component. I chose the approach of a custom directive.
What I got:
<!-- MyForm.vue -->
&...
-1
votes
1
answer
53
views
Vite build is throwing an error from an external folder
My folders look like this:
APP
- 23-commerce-admin
- 23-commerce-api
I am getting this error when I try to build my client app (23-commerce-admin):
✘ [ERROR] Could not resolve "pg-hstore&...
0
votes
1
answer
53
views
Vue Router Does Not Replace the Whole Path
The route I'm having trouble is the below one:
{ path: "/report/:reportid", component: ReportPage, name: "ReportPage", props: true, meta: { requiresAuth: true }}
This page hooks a ...
2
votes
1
answer
197
views
Wrapping of a vuetify component in vue.js 3 type safely
The wrapper component pattern is quite difficult implement in vue.js with Typescript.
To begin with it's difficult to extract the typings for the props, the emits and the slots: especially with ...
0
votes
1
answer
74
views
Jest : Cannot find module '@/components/auth/Login.vue' from 'src/tests/Login.spec.ts'
I'm having trouble running unit tests with Jest in a Vue 3 + TypeScript project. When I run the test, I get the following error:
npx jest --no-cache src/tests/Login.spec.ts
FAIL src/tests/Login.spec....
1
vote
0
answers
50
views
Symbols with Vite HMR in a Vue Component
I have an app using Vite 5 and Vue 3 with a permission system with a handful of different decentralized modules that use js symbols to define their actions and then get registered with a centralized ...
0
votes
0
answers
43
views
progress bar animation not visible
Up the learning curve with Vue. Found this progress bar by Josh Bivens ->Thanks.
https://codepen.io/joshbivens/pen/mPRovV
I got the code working and I use the progress to show processing of some ...
1
vote
1
answer
69
views
Why first label on x-axis is bold?
I am using ApexCharts 3 to produce a line chart. I managed to produce the following chart.
It looks just fine to me except for the first label on x-axis: "1 May 2025". The label is bold. Is ...
2
votes
1
answer
76
views
How to perform a dynamic typing based on Vue.js component props
Background
I'm trying to create reusable data table component with dynamic column formatting and typing in Vue 3.
This table accepts data rows and column definitions,
including components to display ...
0
votes
0
answers
45
views
Vue 3 + Laravel monolith: How to prevent JS from crashing the entire frontend?
I’m working on a monolithic Laravel + Vue 3 app (using the Composition API), and I’m wondering what the best practices are to prevent JavaScript errors from completely crashing the frontend.
Ideally, ...
0
votes
1
answer
79
views
Auto refresh data is not working in pinia store
When I change body.title in v-text-field I see success requests in network tab and response with new data but there is no changed data on the page.
otherwise, if I use const { data: _data }: any = ...
-1
votes
2
answers
56
views
Is the Vue template sourced predictibly?
I have a moderately complex set of containers displayed conditionally:
<div v-for="activity in allActivities" :key="activity.id">
<div v-if="something(activity)&...
0
votes
0
answers
52
views
Testing Bootstrap accordion in Vue component with Nuxt test utils failing
I recently upgraded my project from Vue 2 to Vue 3, so i'm just importing Bootstrap instead of using Bootstrap-Vue.
I want to test the accordion functionality using nuxt-test-utils and my test ...
1
vote
2
answers
135
views
visibilitychange event not working on chromeos, when laptop is turned on from sleep mode
when user turns on his laptop, I am trying to check user's last activity time on mounted in vuejs3, i am using below code for it:
document.addEventListener('visibilitychange', () => {
if (...
0
votes
1
answer
59
views
How to build a smooth animated filter section like this Nuxt.js/Vue.js website?
I'm trying to replicate the filter section from the top part of this website: https://kimeracorp.eu/
It has a smooth animation when toggling filter options, and the content adjusts dynamically. I ...
0
votes
0
answers
130
views
NuxtUI stepper error : expose() should be called only once per setup()
I've tried to use the stepper component to create a stepper into my nuxt app.
The stepper is correctly loaded, but there is an error in the console : expose() should be called only once per setup(). ...
0
votes
0
answers
40
views
Are the conditions for Vue-hydratability specified?
Is there a specification of the HTML a server has to produce so that Vue (3.x) can hydrate it?
"Easy": get a Vue app server side rendered (we have successfully used Nuxt in production)
&...
0
votes
0
answers
84
views
Optimize remote URL images to webp format in Nuxt Image
I have a use case to convert remote URL images to the webp format before they render in the Nuxt website.
I simply did this
<NuxtImg src="https://images.pexels.com/photos/1028930/pexels-photo-...
1
vote
2
answers
104
views
Why is my menu item passing the wrong prop to my dialog?
I am constructing a demo to illustrate the ways you can invoke dialogs in Vuetify3 so that I can learn these techniques myself. (I'm thinking of publishing this to GitHub if it all works out so that ...