title: Vue.js migration to 2.0: Failed to mount component: template or render function not defined. (found in root instance)
body: <p>// Edit: I think i have the problem solved. i needed the standalone build from vue...</p>
  
  <p>i have migrated my vue.js 1.0 app to vue.js 2.0 (with migration helper). But this error shows me in the console <code>Failed to mount component: template or render function not defined. (found in root instance)</code>.</p>
  
  <p>Here is my simplified main.js:</p>
  
  <pre><code>import Vue from 'vue';
  import Router from 'vue-router';
  
  import SiteHeader from './components/Header.vue';
  import Content from './components/Content/Content.vue';
  import SiteFooter from './components/Footer.vue';
  
  Vue.use(Router);
  
  const router = new Router({
    mode: 'history',
    root: '/',
    routes: [
      { path: '/', component: Content }
    ]
  });
  
  new Vue({
    router,
  
   components: {
      SiteHeader, SiteFooter
    }
  }).$mount('body');
  </code></pre>
  
  <p>The <code>Content.vue</code> is an normal <code>vue</code> file with template and script (nothing special here).</p>
  
  <p>My ´router-view` is defined in an laravel.blade file</p>
  
  <pre><code> @if(Request::is('login'))
    &lt;login&gt;&lt;/login&gt;
   @else
    &lt;site-header&gt;&lt;/site-header&gt;
    &lt;router-view&gt;&lt;/router-view&gt;
    &lt;site-footer&gt;&lt;/site-footer&gt;
   @endif
  </code></pre>