Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [vue-component]

Component is a powerful Vue feature that allows extending basic HTML elements to encapsulate reusable code.

vue-component
0 votes
1 answer
29 views

Return component with props from composable

In a Vue project, I have a composable that provides few useful refs to components using it. In my application, it is very likely that whichever components use the composable, it will need to render ...
ALai's user avatar
  • 779
0 votes
0 answers
30 views

Vue modal won't show but load perfectly fine in the web page

I'm trying to create a modal with Vue to display some information of a post so i created a component Modal.vue and loaded into the page that list all the posts, and when you click on a post you should ...
andrea zanella's user avatar
0 votes
0 answers
34 views

How to create a standalone embeddable script from an internal Vue component?

I have a Vue application, and within, I have a component, which I reuse throughout the app. It's located in src/components. I'd now like to make it so this component can be embedded into other ...
CentoKili53's user avatar
0 votes
0 answers
36 views

Links not longer working when navigating to another view

So, when I used this code to go from the view to another with props. this my first view : <template> <Spinner /> <Header /> <main class="main"> <...
JuniorDev's user avatar
0 votes
0 answers
31 views

TypeError: Right-hand side of 'instanceof' is not an object in Chartist.js with Vue.js

I'm trying to create a Pie chart using Chartist.js in my Vue.js project and integrate the chartist-plugin-fill-donut plugin. However, I'm encountering a TypeError: Right-hand side of 'instanceof' is ...
Kulwinder Singh's user avatar
0 votes
1 answer
23 views

Vue.js: Watch Nested Property Changes and Trigger Method in a Deeply Nested Component Structure

I'm working with a Vue.js application where I need to watch changes on a nested property (isChecked) in a deeply nested component structure. My goal is to trigger a method (sumOfChecked) whenever the ...
maher's user avatar
  • 35
0 votes
2 answers
37 views

Vuejs 3 props are all undefined

I know this has been asked before but nothing I've tried works, even the official docs I have a view sample vue component and I want to pass a prop so I can display it <template> <div ...
AdRock's user avatar
  • 3,061
0 votes
0 answers
26 views

Vue shows an image in one component, but in other component, gives 304 error and doesn't show the image

My Vue.js app has the public folder, with a folder for images, where I put the images for the app to use. In Home component I can show the image with: <img :src="'images/'+ product.image"&...
Developer's user avatar
  • 107
0 votes
1 answer
34 views

Binding Events and Functions to Dynamic Components in Vue 3

I have an array of form field like below and I wanna render dynamic form with event and function [...{ label: "Logo", field: "image", component: ...
Newbie Web's user avatar
1 vote
0 answers
19 views

Quasar qpopup edit async validation not working

I am facing issue with qpopupedit async validation I created a codepen. I think it is converting return boolean value to a string. can anyone check why it is not working ? I created a Codepen you can ...
Pash's user avatar
  • 388
0 votes
2 answers
28 views

Vue 3 upgrade props are passed but not show in the component

I have following Vue 3 component image-template-row-item which has the prop templates-types which is defined in the component in the props: now this prop is always passed as undefined to the ...
Muhammad Essam's user avatar
2 votes
1 answer
72 views

[Vue warn]: Failed to resolve component: UserBasket

I ran into an issue that had me scratch my head for a few days now. I am doing a application with vuejs3 frontend. For all the code I provide I removed the most other code and kept what I think is ...
Tarakos's user avatar
  • 23
0 votes
0 answers
29 views

VeeValidate handeSubmit Not returned values

I work with vee-validate validation for vue. I choose handleSubmit method: <template> <div> <Form @submit="onSubmit" :validation-schema="schema"> <...
LarakBell's user avatar
  • 618
0 votes
2 answers
37 views

VUE js: prevent a function to run once when initially loaded/mounted

I'm trying to create a form that sends the submitted data into a database: I'm new in vue and still reading the documentation, if the answer is in the documentation please do remind me. The below is a ...
Fritz Adelbertus Sitindaon's user avatar
0 votes
2 answers
37 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 ...
feub's user avatar
  • 547
1 vote
1 answer
96 views

two-way binding of a checkbox does not happen

For the code posted below vue component it is a child component and is hosted in a specific parent. When I make two ways binding via vModelCheckGeoTIFFOverlayBandAverages by introducing a change to ...
Amr's user avatar
  • 27
0 votes
1 answer
57 views

vue 3 composition api, can not return value from a helper function to component

i think this is a problem of scope inside my helper function, i have successfully implementing the same logic in my component and it works perfectly i have already using a composable function to use ...
Ayoub Groubi's user avatar
0 votes
0 answers
42 views

Vue child component not mounting during rendering

const componentData = { "label": "body", "category": "default", "children": [{ "label": "Droppable Component&...
Muhammad Zeerak's user avatar
1 vote
1 answer
53 views

how to change v-calendar default color using vue.js 3

<template> <v-row> <v-col> <v-sheet> <v-calendar class="custom"></v-calendar> </v-sheet> </v-col> </v-row&...
Pongsatorn Tassaro's user avatar
1 vote
0 answers
177 views

VUE [Vue warn]: Wrong type passed as event handler to onClass - did you forget @ or : in front of your prop?

At some point I noticed that a lot of warnings appear in the project, maybe because I reinstalled node_module or something else. The problem is that when adding attributes to a custom component errors ...
Shamil's user avatar
  • 11
0 votes
0 answers
23 views

Vue2.x vue custom element when i passed param like 111. the dot at the end was removed. Is it well known issue? How to fix it

Vue2.x vue custom element when i passed param like 111. the dot at the end was removed. Is it well known issue? How to fix it. Step npm run build vue file use file from /dist in php project Problem ...
Supisara Khongthiang's user avatar
0 votes
1 answer
49 views

Binding multiple properties to a component using and object as props - Vue 3

I'm having a little problem binding multiple properties to a component using an object. When I use this component on any other page I expect to pass the props in matching the ContentOptions interface ...
bricewa's user avatar
  • 75
0 votes
1 answer
50 views

Question about vue 3 lifecycle and availability of properties

I want to load some content of a vue component based on a given argument. Here is some code to illustrate: ParentComponent.vue <Suspense> <div class="row g-0"> <div class=&...
Roland Deschain's user avatar
1 vote
1 answer
30 views

How to just add the content of a component to Vue DOM and not the wrapper itself, like React.Fragment in React JS

I'm trying to refactor my code into readable and short pieces. Therefore sometimes I need to create a dumb component which only is holding the repetitive part of my code. For example I wanted to use ...
Erik's user avatar
  • 11
0 votes
2 answers
35 views

shorter names for vue3 deep objects when accessing them in template and in code

How to get around long names of objects, for example, buttons.btnCancel.inactive? I've tried plain desctructuring using const {btnCancelInactive: inactive, btnCancelInactiveClass: inactiveClass, ...
JeffP's user avatar
  • 555
1 vote
1 answer
97 views

How to teleport only after the container is mounted in Vue 3?

Depending on the loading state, sometimes the <Teleport />'s target container will be mounted later than the content's mounting, causing Vue error [Vue warn]: Invalid Teleport target on mount: ...
Mysterywood's user avatar
  • 1,608
0 votes
1 answer
34 views

show '+N More' in vue-search-select

I have a Vue component and I am using MultiListSelect (vue-search-select). My problem is, that if I select multiple options, I need to show +N More inside the box. <MultiListSelect :list=&...
user24705845's user avatar
1 vote
1 answer
39 views

Integrate vee-validate with vue-datepicker

I'm trying to validate vue-datepicker for required field using vee-validate like this: <Form @submit="handleEvent" :validation-schema="addEventSchema"> <...
LarakBell's user avatar
  • 618
0 votes
0 answers
30 views

Vue access components

I want to trigger the update() function of kursAktiv.vue when I press the button "Kursanlegen" in kursAnlegen.vue ! Here are the kursAnlegen button and function: <kursverwalter v-model:...
user24803569's user avatar
0 votes
0 answers
33 views

Can't see any change after updateing Vue component inside Laravel Nova project

I am having issue I wasn't able to fix with googleing or stackoverflowing and its super strange one. It could easily be lack of knowledge on my side so have mercy. I have made an application recently ...
UgaBeluga's user avatar
  • 132
0 votes
0 answers
37 views

Facing issues in nested routes in Vue-3

I am creating a simple CRUD application for users based on different roles, but I'm facing issues with nested routes and component rendering. I have carefully reviewed their official documentation, ...
Ittefaq Technologies's user avatar
0 votes
1 answer
43 views

Using a custom modal in vue, 2 times inside another component renders only the first component data

So the problem is that I am working in a Laravel Vue application both are different application. The problem I am facing is that I have a created a component for modal using bootstrap in VUE JS. And I ...
Piyush's user avatar
  • 28
0 votes
0 answers
37 views

display routes in tabs with vue

can you help me to create something similar to https://adminlte.io/themes/v3/iframe.html# I have tried this <template> <div class="tabs" v-if="tabs"> <nav ...
juancho perez's user avatar
0 votes
0 answers
26 views

Avoiding style-mismatch with computed value

My goal is to render a list of elements randomly placed inside a grid. I tried to achieve this with the cue-computed property. But unfortunately I'm always getting the error: - rendered on server: ...
IamSebastn's user avatar
1 vote
1 answer
50 views

Vue 3 sub component raises click event when displayed

In vue 3 compose api, I am displaying a popup component and I want to capture out click for closing the modal. my code in my parent component <template> <button @click="toggleSettings&...
Pipo's user avatar
  • 5,427
0 votes
1 answer
39 views

Populated options on select apear black at first but after changing tabs it shows okay

I have a select component like this <template> <div class="newsletter-launcher"> <h2>Select a Newsletter to Launch</h2> <select v-model="...
Alejandro Peña's user avatar
0 votes
0 answers
29 views

Cypress Testing Error: getResult() Method Returns undefined for Canvas Element in vue-advanced-cropper

I am writing a test for the image cropping functionality in my Vue application using the vue-advanced-cropper package. I have encountered an issue where the getResult() method, which retrieves the ...
蔡敏佳's user avatar
0 votes
0 answers
57 views

get() of a computed property never gets invoked

i am using vue3 with options api as shown in the below posted code, i have two radio buttons, the first one will invoke onShowGeoTIFFOverlayChanged and the second one will invoke ...
Amr's user avatar
  • 33
0 votes
0 answers
65 views

Vue 3 onMounted not loading data in Vuetify data table server

I have created this page with Vue 3 + Vuetify called demo.vue in my project which receives data from an API server. The problem that I'm facing is that I set up the data inside an onMounted function, ...
Antonio's user avatar
0 votes
1 answer
89 views

Getting import error using vue3 component library created using vite

The .js library file have following import statement: import JU, { defineComponent as Ge } from "vue"; Due to this I am getting below error: SyntaxError: The requested module '/node_modules/...
aishwarya's user avatar
0 votes
0 answers
26 views

Vue keeps p5 components alive after navigating

I have build a creativ coding website using vue and p5. In my app i display different p5 components depending on the current route. The problem is that somehow vue or p5 (idk which) keeps the ...
Ivo Heberle's user avatar
0 votes
1 answer
51 views

In Vue.JS, How to pass and change props value into nested components?

My requirement is very basic and easy, but not sure why even ChatGPT keeps giving me answer that has warning messages. I am using Vue 2. I have three nested components: GrandParentComponent, ...
theedchen's user avatar
  • 1,886
0 votes
1 answer
51 views

How to create helper methods to render components in nuxt

I'm new to Nuxt, I'm using Nuxt and Nuxt UI for my project. I'm trying to create helper methods to render the components with small differences. For example, in my Header.vue <template> <...
abcXYZ's user avatar
  • 140
0 votes
1 answer
118 views

How to call the methods exposed by components in slots with Vue 3 Composition API

There are some components (child component) in a slot (in parent component) and I want to call the methods on them. I tried the following steps: Retrieve the child components as objects with useSlots ...
oceanblue's user avatar
0 votes
0 answers
62 views

emit does not dispatch vlaue from child to parent component

vue3 with options api as shown in the below posted code, the child component has a drop-down list as shown in the code in section child. This child component is hosted in parent-1 and parent-2, and ...
Amr's user avatar
  • 33
0 votes
0 answers
43 views

how to introduce v-model to a drop-down list

vue3 with options api as shown in the code section below, i am creating a vue-component with drop-down list what i want to achieve is, to introduce v-model to the drop-down list so that when the user ...
Amr's user avatar
  • 33
0 votes
0 answers
38 views

Store gets called even if set to the same value more than once

i am using vue3 with options api for the storeTest.vue posted below, every time i set a value to it, the respective wachter gets executed, but it also gets excuted even if the i set the same object ...
Amr's user avatar
  • 33
0 votes
1 answer
74 views

Watcher does not detect changes occured to an array of objects

I am using vue3 with options api as shown in the section titled code. I set an object to a store. storeTest.vue shows how the Store is implemented, and in watch it shows how I listen to changes that ...
Amr's user avatar
  • 33
0 votes
0 answers
48 views

ERROR in [eslint] Cannot read properties of null (reading 'references') Occurred while linting

I am new to work with vue. I have used @vue-flow/core to use a custom edge with button component. But while running the npm run build/serve, I am getting this error: ERROR in [eslint] Cannot read ...
Sandip Kabiraz's user avatar
0 votes
0 answers
26 views

Vuetify 2 date picker won't update date in DOM

I'm trying to make a date picker and update some text in the DOM when a new date is selected, but it won't update at all. My template <template> <div> {{ new Date(date)....
pol's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
214