Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
82 views

we're using VueX 3.6 with Vue 2.7. The project is old We can't go to Vue3. For new components, we're trying to use script/setup for new components. How to use VueX mapper functions in this situation? ...
Md. A. Apu's user avatar
  • 1,318
2 votes
2 answers
63 views

I have an issue that needs to be resolved. a.ts const open = ref<boolean>(false) h(RowAction, { open: open, onDelete: () => { Data.remove().then(() => {}).catch(() => {})....
MewTheDev's user avatar
2 votes
0 answers
188 views

I am having issues with my store not resetting properly when locally developing, this is (i suppose) because of Vite HMR in my Nuxt3 application. My store is defined as so: import { defineStore, ...
Dennis's user avatar
  • 3,860
4 votes
1 answer
3k views

I am trying to use the v-model directive on two input elements. However, I am getting the following error: duplicate model name "modelValue". Below I show the code that generates this error: ...
William Pineda MHA's user avatar
0 votes
1 answer
82 views

I am creating a vue.js3 SFC application where the list component is used multiple times. The aim is to produse a separate lists of items in each component from SingleList.vue. I wanted to use a v-for='...
Anna's user avatar
  • 15
1 vote
1 answer
418 views

I have a vue3 app, in which I'd like to keep using the standard composition api style. Unfortunately, RevoGrid doesn't seem to like it. RevoGrid works with an options api style , but the equivalent ...
Shane Petroff's user avatar
7 votes
1 answer
13k views

The examples given for defineModel in the Vue docs all relate to uses for data inputs. I was wondering if this construct could also be used elsewhere, thus avoiding the somewhat cumbersome props/emit ...
quilkin's user avatar
  • 1,499
1 vote
1 answer
72 views

Say I have an SFC component with a save emit: // ChildComponent.vue const emit = defineEmits<{ save: [data: { new: Row[]; removed: Row[] }]; }>(); If I want to use the new & removed in a ...
Ansis Spruģevics's user avatar
-1 votes
1 answer
216 views

i would want to access the props value from another props validator. Here is my code: <script lang="ts" setup> import { PropType } from 'vue'; import { iStep } from '@/...
user3699170's user avatar
0 votes
1 answer
153 views

Funnily the Vue js documentation is highly suggesting to use the <script setup> syntax of the Composition API, the problem with it is that the documentation is very basic and it interferes with ...
domjanzsoo's user avatar
0 votes
0 answers
33 views

I'm having trouble with getting current route name in App.vue in Vue3 script setup. I would like to get the current route name and check if it matches some conditions. The route is /login. and the ...
Kenta's user avatar
  • 1
1 vote
0 answers
1k views

I'm using TipTap with Vue3, Composition API and typescript (script setup) and I've faced a problem. There is no documentation how to implement https://tiptap.dev/examples/interactivity vue ...
Stepan Berkunov's user avatar
1 vote
2 answers
734 views

I get the following warning in the browser when I try to reference the slot props. What am I missing? [Vue warn]: Property "disabled" was accessed during render but is not defined on ...
fsdevland's user avatar
2 votes
1 answer
2k views

I've been learning Vue 3 for the past month or so and have gotten quite far but I can't fix this no matter what I've tried. I know I'm losing reactivity but I can't figure out how and it's driving me ...
Todd Hammer's user avatar
0 votes
1 answer
781 views

The component I want to use with a custom name is defined as: @/components/MyCustomName.vue <template lang=""> <div>I'm here</div> </template> <script> ...
Eric G's user avatar
  • 796
1 vote
0 answers
358 views

I'm using vue-test-utils to test my components. They are written in composition API with <script setup> tag. I'm facing some difficulties when spying the functions to test if they were called or ...
Gabriella Tavares's user avatar
0 votes
1 answer
521 views

I have a nuxt 3 component which fails to load dynamic image that i'm getting from a specific URL(auth0 images). My template looks like so: <template> <img class="h-28 w-28 rounded-...
George Marwanqana's user avatar
0 votes
2 answers
2k views

I need to pass an array from component A (App.vue) through component B to component C. What I do is this (this first step works, just read it to understand): // A.vue <script setup> import B ...
grimoiredark's user avatar
1 vote
2 answers
625 views

Here's a reproduction link: https://stackblitz.com/edit/node-c6mn17?file=src/components/Test.vue I want to be able to use reactive state from that store using setup in Vue 2.7. I export a Vuex store ...
Cesar Martinez Dominguez's user avatar
3 votes
2 answers
5k views

The full warning message: [Vue warn]: Slot "default" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render ...
Cin88's user avatar
  • 523
2 votes
2 answers
4k views

I'm building an application in Vue 3 using Script Setup and Quasar where the user can add new input boxes by pressing the "New Space +" button. It's super annoying to have to click the ...
HumanHickory's user avatar
1 vote
1 answer
516 views

I have this Vue 3 SFC <template> <div> Home component </div> </template> <script> export default { name: 'Home', icon: 'house-icon' } </script&...
Tolbxela's user avatar
  • 5,219
2 votes
1 answer
942 views

im trying to write tests with Vitest for my vue3 component this is my component code: <script lang="ts" setup> import { reactive, computed, ref, onMounted } from 'vue' import { ...
Andrew Crescencio's user avatar
0 votes
1 answer
2k views

In vue 3 composition API im trying to do the following: <script setup lang="ts"> import { computed } from "vue"; // vue doesnt like this line (the export seems to be the issue) export ...
Rezzy's user avatar
  • 334
0 votes
1 answer
197 views

I have a child component that takes in some props to decide for a state: export interface IProps { selected?: boolean, answered?: boolean } const {selected, answered} = defineProps<...
NullOrNotNull's user avatar