working with Laravel 5.7 and Vue Js. this is
app.js
let Myheader = require('./components/Myheader.vue');
let Myfooter = require('./components/Myfooter.vue');
const app = new Vue({
el: '#app',
components:{Myheader,Myfooter}
});
blade.php file
<body>
<div id="app">
<Myheader></Myheader>
<Myfooter></Myfooter>
</div>
<script src="{{ asset('js/app.js')}}"></script>
</body>
but when I run artisan serve command it is not displayed vue component. how can fix this problem?
artisan serve. Trynpm run watchornpm run dev. Be sure, you havenpminstalled. By the way, check your console output, should ne some errors there :)npm run watchas well but error is here[Vue warn]: Failed to mount component: template or render function not defined. found in ---> <Myfooter> <Root>