After updating my dependencies to their latest version I started getting runtime errors. I cannot be sure this is entirely an issue with Vue, as many dependencies were updated.
Here is the problem (runtime error):
[Vue warn]: Failed to mount component: template or render function not defined.
After investigating I tracked the problem to the way I am registering my application’s components. Here is the way I was doing it which was working fine prior to updating dependencies:
And I can fix the error by using either of these methods:
Vue.component('sidebar', require('./components/Sidebar').default); OR Import Sidebar from './components/Sidebar'; Vue.component('sidebar, Sidebar);
Can someone explain why this happened and how I can either get back to the old way I was doing it or perhaps show me a better way to register global components?