Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
2 replies
77 views

I've been learning Vue for my project (Composition API) and so far there is one thing that I can't get my head around. Let's say we have a reactive object: const obj = reactive({ count: 0 }) And I ...
Ivan's user avatar
  • 19
0 votes
0 answers
83 views

I’m trying to insert streamed Markdown chunks into a TipTap editor using Vue and tiptap-pagination-plus. The issue is that when the streamed content causes a page break, TipTap adds unwanted ...
fabricio Roberto's user avatar
0 votes
0 answers
66 views

I wanted to add the placeholder-module in my quill-editor. I have installed the quill-placeholder-module. Whenever I tried to register it in OnMounted, it throws an error: index.ts:35 quill Cannot ...
trap's user avatar
  • 2,650
1 vote
1 answer
55 views

Problem: I’m migrating a Vue 2.6 app to the Composition API (via the plugin) and hit two testing issues with vue-test-utils (v1) + Jest: Jest couldn’t mock functions from a plain TS module (not a Vue ...
Makc's user avatar
  • 1,192
0 votes
1 answer
56 views

I'm working with Vue 3's Composition API, and I’m trying to provide a ref that is part of a reactive object. However, when I inject it in a child component, I get the raw value, not the reactive ref. ...
SajjadLabs's user avatar
0 votes
0 answers
72 views

I'm working with a component that receives a large array (around 6000 items), but I want to limit how many of those items are actually rendered, ideally just 10 or 20. Is there a prop or built-in way ...
Mathias Alonso's user avatar
0 votes
2 answers
101 views

This code works only locally. In prod or stg build there are no logs in console and language code doesn't change, but the language is updated correctly across the UI. <template> <div> ...
Jarosław Rewers's user avatar
0 votes
0 answers
50 views

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, ...
Sanja's user avatar
  • 406
1 vote
1 answer
31 views

On Vue-based environment, global products item state is declared to be used in products list component, and other components like navbar for categories dropdown: import axios from "axios"; ...
Mahmoud Tarek Mahmoud's user avatar
0 votes
0 answers
47 views

My project uses Vue 3 (w/ Composition API) and Vuetify. I'm trying to create a custom container component that essentially adds a title bar to its content. This is the custom component: // ...
Ethan's user avatar
  • 83
1 vote
0 answers
145 views

My project is in Vue 3 (Composition API) w/ Pinia and SignalR Here is an example of what I'm working with: I have a parent object, let's call it Oven, and a child object called Bread. There is a ...
Ethan's user avatar
  • 83
0 votes
0 answers
83 views

I have a Vue 3 app that utilizes the Composition API, Vue Router w/ history mode, Vite, Vuetify and Typescript. When I refresh the browser on a different page, I get a 404 error, and I'm pretty ...
Ethan's user avatar
  • 83
0 votes
0 answers
55 views

when using the selctCategory function to replace the existing route parameters, I receive an error that states "devices:1 Uncaught (in promise) Maximum recursive updates exceeded in component . ...
Tasha Smith's user avatar
0 votes
1 answer
192 views

I'm starting to get comfortable with Vue's composition API, but every time I make a composable I ask myself which pattern to use. If I have a composable whose state depends on outside triggers: ...
Christian's user avatar
  • 841
1 vote
0 answers
64 views

Description: I'm using Nuxt 3 with useHead() to set dynamic meta tags based on locale. The meta tags appear correctly in the Elements tab (DevTools) but are missing in "View Page Source". ...
Sheharzad Salahuddin's user avatar
0 votes
0 answers
140 views

In nuxt 3 you have two alternative ways to provide something globally // using nuxtApp instance useNuxtApp().provide('key', 'value') console.log(nuxtApp.$key) // value // using vueApp instance ...
Romalex's user avatar
  • 1,846
0 votes
0 answers
78 views

"vue": "^2.7.16" "nuxt": "^2.18.1" "@nuxt/bridge": "^3.3.1" I have a composable that is using Composition api. import { ref, reactive, } ...
Sambuxc's user avatar
  • 510
0 votes
1 answer
1k views

I've been experimenting with PrimeVue and am trying to understand how to use their forms. They don't have any example of clearing the form fields. However, there is mention of a "reset" ...
jreeves's user avatar
1 vote
1 answer
81 views

I haven't worked with Vue for a while and now I am struggling with something that seems simple. I have a store where I plan to keep a state for the whole app. Currently I only have one boolean ...
Thomas's user avatar
  • 7,290
1 vote
1 answer
137 views

EDIT01: I'm using "nuxt": "^2.16.0" with "@nuxtjs/composition-api": "^0.29.2". I'm have been trying for days to figure this out but still dealing with this ...
Lowtrux's user avatar
  • 208
1 vote
1 answer
52 views

How to check a form for a regex rule by using Vuelidate. It is clear from the guide that you need to use "helpers", however, when checking for the validity of a regular expression, Vuelidate ...
0 votes
1 answer
207 views

I am building a dashboard using Vue.js 3 and ApexCharts with the composition API. The data for the charts is held in a Pinia data store. I have a function that pulls data from a sample .json file (...
VeggieBear's user avatar
0 votes
0 answers
31 views

In my child component, I have an input file field that I need to retrieve from the parent component, to submit all the form data. Unfortunately, I can't retrieve the data from my input file. Can you ...
Kaddour Fellah's user avatar
0 votes
1 answer
131 views

With react i was able to do smth like this: const Component = (props: BaseComponentProps) => <BaseComponent {...props} className={`my-class ${props.className}`} /> a simple way to modify ...
Amereth's user avatar
  • 75
1 vote
1 answer
48 views

I want to make a custom carousel which displays multiple slides at once and moves by one slide on a button press. In the main view this is how it is defined: <MultiItemCarouselComponent> <...
Roland Deschain's user avatar
1 vote
1 answer
122 views

I have made myself a nice CarouselComponent based on bootstraps carousel, which can take children as slots and automatically creates slides for each of the children: App.vue: <CarouselComponent ...
Roland Deschain's user avatar
1 vote
0 answers
420 views

I'm getting "value is possibly null" flags in VS Code with TypeScript in my when I use useTemplateRef. Of this kind: audioPlayer.value.pause() is possibly null Only if I add the non null ...
Thomas James Thorstensson's user avatar
0 votes
0 answers
29 views

this is children component <script setup> import { computed, ref, watch, watchEffect } from 'vue' import { useRoute } from 'vue-router' import dataSource from '../../data.json' import ...
viktor70777's user avatar
0 votes
0 answers
53 views

I have button icon which is a separate component. I need to give the tab focus on this element after page is rendered. I am using Composition API in Vue 3. I tried adding ref to this component but it ...
Danu's user avatar
  • 21
1 vote
2 answers
72 views

I have a process which have many steps. Each one is implemented in a different component. Initially I had this code: <template> <template v-if="process.currentStep === 0"> &...
guyaloni's user avatar
  • 6,020
1 vote
1 answer
98 views

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 ...
Lazouski's user avatar
  • 101
0 votes
3 answers
78 views

I have an object of documents that I manage by id within my composable, while to the outside revealing a computed (derived, readonly) state: const state = reactive({}) export const useDocs = () => ...
Jankapunkt's user avatar
  • 8,471
0 votes
0 answers
68 views

Allowance of any attributes for components creates problems for me. Playground For example taking this: <script setup lang="ts"> import { ref } from 'vue'; import Checkbox from './...
Alexander Nenashev's user avatar
0 votes
1 answer
65 views

Consider a reactive object (or array) that is dynamically populated with data: import { reactive, computed } from 'vue' const entries = reactive({}) // global state beyond Template level const docs = ...
Jankapunkt's user avatar
  • 8,471
0 votes
1 answer
213 views

Here is my view component: <template> <begin-adult-app-form :form-status="formStatus" :form-submitted="formSubmitted" v-on:form-valid=&...
Joe King's user avatar
0 votes
1 answer
119 views

I've been using Vue for about 7 years now but am new to the Vue 3 Composition API. I am having an issue with a prop value being undefined when trying to access it in a ref object. Parent component: &...
Dev 404's user avatar
  • 1,616
0 votes
2 answers
363 views

I'm trying to toggle references on and off in Vue. This is how I'd like to do it (or something similar) by having a conditional :ref="option.selected? 'foobar': null" on the items: <...
CJ Dennis's user avatar
  • 4,384
0 votes
1 answer
327 views

I'm using some third party api's and try to display data on a page. I use Nuxt (3.13) for this. Nuxt documentation seems quite straighforward, but I can not get this to work properly. I'm using ...
Linda's user avatar
  • 93
1 vote
1 answer
23 views

i have several composable file like: File one: export const useLoadUserData = () => { const loadData = async () => { // some staff } onMounted(async () => loadData()) } File two: ...
Nimble Stalker's user avatar
0 votes
1 answer
159 views

I'm writing application in Vue 3's Composition API with TypeScript. In my view I want to get new position of dragged v-group. To do that I need to get reference to the v-group and unwrap it from vue-...
Promatheusz's user avatar
0 votes
0 answers
141 views

When using Vue composition API with <script setup>, components are just imported like import Component from '@/components/Component.vue'; How do I keep eslint from applying the no-unused-var ...
Damm Joe's user avatar
0 votes
0 answers
59 views

I have a table component with an exposed: const self = { dispatchKeys: (e: KeyboardEvent) => (onInputKeydown(e), self), assign, assignRow, selectCell, selection, columns, get ...
Alexander Nenashev's user avatar
1 vote
2 answers
579 views

I've tried using provide/inject: plugins/axios.ts: import axios from 'axios' import type { AxiosInstance } from 'axios' import type { App } from 'vue' export default { install: (app: App, baseUrl:...
AJ.'s user avatar
  • 16.7k
1 vote
0 answers
822 views

We have specific components that have to be handled specially in regard to error logging. We are using Sentry and need to apply specific tags to possible errors when they are thrown in a specific ...
Eddi's user avatar
  • 831
1 vote
1 answer
1k views

I'm learning Vue 3 with the Composition API using TypeScript. One of the tutorials I'm doing suggests using unplugin-vue-router to autogenerate routes based on file naming/path conventions. The plugin ...
AJ.'s user avatar
  • 16.7k
1 vote
2 answers
64 views

I've recently started using Vue3 after a couple year gap and have opted for the Composition API. The issue I have is with the 2 event listeners in the onMounted function. This is what I get for the ...
AdRock's user avatar
  • 3,126
4 votes
2 answers
204 views

Omitted import statements for the sake of being concise inputData.ts export const useInputDataStore = defineStore("inputData", { state: () => { return { ...
8SIXSector's user avatar
1 vote
2 answers
83 views

When importing a component is it possible to get its properties type? For example: import MyComponent from '.my-component.vue'; const props: ComponentProps<MyComponent> = { }; Any idea how to ...
Alexander Nenashev's user avatar
0 votes
1 answer
42 views

I have composable function like this: export function useAppModal(beforeOpen?: <???>) => void) { const modal = ref() // calling open with any arguments will be passed to beforeOpen ...
Christhofer Natalius's user avatar
0 votes
1 answer
448 views

This is a stupid question, but I can't figure out what I'm doing wrong. Trying to setup CK5 in Vue and I'm running into some issues. Getting this error: Component is missing template or render ...
rikuto148's user avatar
  • 263

1
2 3 4 5
34