All Questions
4,128 questions
-1
votes
1
answer
39
views
Vue.js 3 - pass contents of a component's slot to another slot outside it
I have a component Foo with the following contents:
<Bar>
<template #option="slotProps" v-if="$slots.option">
<slot name="option" v-bind="...
0
votes
1
answer
73
views
How to wait for an external script to be ready in Vue 3?
I am trying to integrate Google Pay as a component in an application. I need to load the Google Pay Javascript file before I perform any actions. This is what I am doing:
onMounted(()=>{
const ...
0
votes
1
answer
53
views
How does one resolve this: 'Uncaught ReferenceError: Cannot access 'NavBar' before initialization'?
<template>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<router-link class="navbar-brand" ...
0
votes
0
answers
41
views
Vue modal adding chapter of same subject
<template>
<div class="container mt-5">
<div class="row">
<div class="col-md-4 mb-4" v-for="subject in subjects.subject&...
1
vote
1
answer
45
views
How to hide text field floating suggestions when field is left, but not if a suggestion is clicked?
I made a vue component (my first ever!) that aims to show suggestions for options as you type:
const AutoCompleteComponent = {
data() {
return {
open: false,
...
0
votes
0
answers
34
views
Dynamic Components Not Rendering from the Database
I am trying to integrate dynamic components inside my Vue 3 blog articles stored in MongoDB to reduce the work of specifying image details every time. However, the image component is not being ...
2
votes
1
answer
45
views
Vuetify3 autocomplete with per-item tooltips not clickable
Given Vue3 + Vuetify3 code:
<template>
<v-autocomplete :items="items" :value="selectedItem">
<template v-slot:item="data">
<v-tooltip>
...
1
vote
1
answer
82
views
Vue 2 to 3 upgrade: simplifying checkbox question component
I have a checkbox form question component I made in Vue 2 and i'm migrating to Vue 3 so want to simplify it as much as possible and make sure i've taken advantage of all the new feature of Vue 3.
...
-1
votes
1
answer
35
views
I dont have VueRouter or Router from 'vue-router' [closed]
I dont know how to make a web router in vue because im a beginner, so in every tutorial, i see that they import router or vuerouter from 'vue-router'
What i've already tried? i ran npm install vue-...
0
votes
1
answer
32
views
Updating/ Removing recursive child components
I have an application which needs to walk and display a directory structure similar to a filesystem. Below is an example of how this would work with a filesystem.
App.vue
<script setup>
import ...
0
votes
0
answers
32
views
Vuelidate is always fail on validation
So I have an a component with composable, one of them is modal, so the modal is only the canvas, I just pass the slot to the body, but when I do a create data, the vuelidate is always failing even ...
0
votes
1
answer
73
views
vue "InternalError: too much recursion"
I try to embedd chart.js as a vue component into my app.
As soon as i try to add new data to the chart dataset i get the error:
Uncaught InternalError: too much recursion
push reactivity.esm-...
1
vote
0
answers
69
views
Cannot find module 'vue-template-compiler'
I am trying to install Vue dependencies globally on my machine instead of relying on a local setup. My goal is to manually install only the necessary modules globally. However, I am struggling to ...
1
vote
1
answer
40
views
Why is property not updating in view when item is removed and added back in v-for
I'm making a feature wherein the user can add product images and it has an undo-redo functionality. I kept it as minimal as possible to show my issue.
I Created a minimal example of my issue in the ...
0
votes
2
answers
130
views
Function prop passed to component is undefined in Vue3
I've got a problem where I want a child component to call a function given to it as a prop from the parent. I have done it before with other components, but with this it just doesn't work.
Here are ...