So I am trying to compile a vue file.
But I am getting the following error
and I don't know why. My main.js file contains the following
// Vue things
import Vue from 'vue'
import VueResource from 'vue-resource'
Vue.use(VueResource)
// Vue Components
import dashboard from 'components/dashboard-component'
new Vue({
el: "body",
components: {
dashboard
},
methods: {
}
})
and my components folder is in the same folder as main.js.
This is my vue component:
<template>
Hello
</template>
<script>
// Exports
export default {
components: {
dashboard
},
props: {
},
data: function (argument) {
},
ready() {
},
methods: {
}
}
</script>
which is under components/dashboard-component as index.vue.
What am I doing wrong ?
Thank you.