title: How to configure Vue-router when using runtime-only Vue
body: <p>I'm trying to use vue-router based on the <a href="https://router.vuejs.org/guide/#javascript" rel="noreferrer">examples</a>, such as</p>
  
  <pre><code>let routes = [
      { path: '/',  component: MainComponent },
  ];
  
  let router = new VueRouter({routes});
  
  new Vue({  router  }).$mount('#app');
  </code></pre>
  
  <p>but I always get this error:</p>
  
  <pre><code>vue.runtime.esm.js:619 [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available.
  </code></pre>
  
  <p>Can I fix this by using the render function?   I tried,</p>
  
  <pre><code>let routes = [];
  </code></pre>
  
  <p>But still fails.</p>