Problem :
I have recently started learning about Vue. Please find below my main javascript file:
import Vue from 'vue'
new Vue({
myel: '#app'
});
Please find below my HTML file:
<body>
<div id="app"></div>
<script src="{{ mix('/js/app.js') }}"></script>
</body>
Please find below my webpack configuration of Vue.js with a runtime build:
alias: {
'vue$': 'vue/dist/vue.runtime.common.js'
}
But I am facing below listed very well known error:
Failed to mount component: template or render function not defined.
Why am I getting above error when I clearly do not have any thing inside a #app div where I am trying to mount Vue and still facing the template or render error?
How can I fix above error?