[Vuejs]-.Vue-File: Migrate structure from "template:'' to <template></template>

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);

Leave a comment