title: Vuejs - Failed to mount component: template or render function not defined
body: <p>I am unsure what I am doing wrong. I get the below error:</p>
  
  <p><strong>error message in console:</strong></p>
  
  <pre><code>[Vue warn]: Failed to mount component: template or render function not defined.
  
  found in
  
  ---&gt; &lt;VueChartjs&gt;
         &lt;Chatjsvue&gt; at src\components\vueChartjs\Chatjsvue.vue
           &lt;App&gt; at src\App.vue
             &lt;Root&gt;
  </code></pre>
  
  <p><strong>index.js</strong></p>
  
  <pre><code>import Vue from 'vue'
  import Router from 'vue-router'
  import HelloWorld from '@/components/HelloWorld'
  
  
  Vue.use(Router)
  
  export default new Router({
    routes: [
      {
        path: '/',
        name: 'HelloWorld',
        // component: HelloWorld
        component: require('../components/HelloWorld.vue').default
      }
    ]
  })
  </code></pre>
  
  <p><strong>App.vue</strong></p>
  
  <pre><code>&lt;template&gt;
    &lt;div id="app" class="container"&gt;
      &lt;img src="./assets/logo.png" class="logo"&gt;
  
      &lt;!-- chartjs --&gt;
      &lt;div class="chartjsvue"&gt;
        &lt;Chatjsvue&gt;&lt;/Chatjsvue&gt;
      &lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
      &lt;!-- chartjs --&gt;
  
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  import Chatjsvue from '@/components/vueChartjs/Chatjsvue'
  
  export default {
    name: 'App',
    components: {
      Chatjsvue
    }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Chatjsvue.vue</strong></p>
  
  <pre><code>&lt;template src="../../views/chartjshtml/chartsjs.html"&gt;&lt;/template&gt;
  
  &lt;script&gt;
    import Chartjsvue from '@/assets/javascripts/chartjs'
  
    export default {
      components: {
        'vue-chartjs': Chartjsvue 
      }
    };
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>chartsjs.html</strong></p>
  
  <pre><code>&lt;div class="wrapper"&gt;
    &lt;vue-chartjs&gt;&lt;/vue-chartjs&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>chartjs.js</strong></p>
  
  <pre><code>file is rmpty- no code in the file
  </code></pre>
  
  <p>What is the error referring to and what needs to be done to resolve it?</p>