All Questions
Tagged with vue-component vue-cli
79 questions
0
votes
1
answer
119
views
How to import Vue multiselect in plain js file without CLI
I wanna import vue multiselect in my Vue app which I made withhout cli. it's plain js and all the content are in my html. but I cannot import libraries like Vue Multiselect :(
In HTML:
<body>
&...
0
votes
0
answers
291
views
Vue Js Linking pages is not displaying anything
I am trying to link pages together in my Vue application and it is not displaying anything.
I am not using vue-router but a a method in which I define my pages in a vue.config.js in my project folder. ...
1
vote
1
answer
810
views
Vue Js child to parent custom event
I'm actually struggling quite a bit about transmitting info between a child component to a parent component in a Vue-js-2 cli project.
So I have a popup modal that appears when a data is true
<...
0
votes
1
answer
1k
views
Reload vue-owl-carousel after dynamic data update
Initialized a vue-owl-carousel using dynamic data
<script>
import carousel from 'vue-owl-carousel'
export default {
components: { carousel },
}
<carousel :items="1">
&...
0
votes
1
answer
667
views
VUE Web component inside legacy app results in error "_Ctor, object is not extensible"
I'm having trouble importing my custom component in my legacy app.
I pre-compiled my SFC as a webcomponent with vue-cli builder, and I import inside my main.js file this way :
import * as HelloWorld ...
1
vote
1
answer
415
views
Architecture for plugins with combined frontend/backend functionality (Vue and Express)
I have a single repo that has a Vue CLI generated frontend application and an Express backend application. The repo is setup as a standard Vue CLI app, with a top-level backend src folder. The Express ...
1
vote
0
answers
308
views
Vue CLI component style tag NOT scoped not applied in Rails CSP error
I have a Rails app with Vue. When I try to add something in the <style> tag, it does not get applied. It is also not visible in the rendered HTML. I do not have the css-loader in my dependencies ...
1
vote
1
answer
359
views
How to pass prop from parent component in html to component vue
I made this using vue-cli. I have a component called InputField, and I render and mount the component to #app. I know that it will inject the component to the app, but how can I get the "default&...
1
vote
0
answers
193
views
Passing data from child component to parent and then to another child not working on page load but works after minor potentially unrelated change
I am new to Vuejs and come across this bug which I have no idea what I have done wrong. I am not receiving any console errors. It doesn't work on initial page load but it seems to work after I comment ...
1
vote
2
answers
2k
views
How can i have component render without App.vue
I’m trying to use vue-cli for app, but i wonder can i use component without using App.vue ?
Here component is shown in html but when i click the button, the testFunction in component is not called ...
1
vote
1
answer
989
views
How to install Vue Hooper slider properly?
I've been learning Vue.js 2 for a few weeks for my app and I don't want to use Bootstrap carousel because of no built in swipe functionality.
So I'm trying to use Vue.js slider like Flickity and ...
1
vote
1
answer
1k
views
Invalid Component definition when trying to register my component
I can't get my components to work in Vue CLI. My file structure is as follows
I'm trying to use GameHub and GamesAdmin as components like so:
<template>
<div>
<game-admin v-...
1
vote
2
answers
2k
views
Vue.js import child component into a component
Today I am making an todo web app, but now I want to import a Todo in my Todolist component. My components:
App (Parent) --> Todolist (Child) --> Todo (Child)
Error:
24:5 error The "...
34
votes
5
answers
173k
views
Vue 3 - "Failed to resolve component" with global components
My Vue components work fine when declared in the top level HTML file, like this
<body>
<div class='app' id='app'>
<header-bar id='headerBar'></header-bar>
...
1
vote
2
answers
2k
views
How do I use Vue.component with modules or Vue CLI?
I'm stuck on how to declare Vue.component inside export default
this is from the tutorial by vuejs.org
instead of using var app = new vue, I use
export default {
name: "App",
el: &...