0๐
โ
The way I got it working is an update to app.js:
Vue.component('foo-component', require('./components/foo-component.vue').default);
import FooComponent from './components/foo-component.vue';
const app = new Vue({
el: '#app',
components: {
OtherComponents,
'foo-component': FooComponent
},
data:{
},
methods: {
}
});
0๐
You have to register your components in app.js
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
Source:stackexchange.com