To fix this error, check app.js and add .default to the require statements. Example Vue.component('example-component', require('./components/ExampleComponent.vue').default);
Source: https://warlord0blog.wordpress.com/2018/03/15/failed-to-mount-component-template-or-render-function-not-defined/