title: import vue.js get error Uncaught SyntaxError: Unexpected identifier
body: <p>I'm learning to use vue.js when I try to use multiple vue libraries, I get an error when I import some library like vue-router , does anyone know ? 
  thank you before</p>
  
  <p>this is my code :</p>
  
  <pre><code>import Vue from 'vue' ;
  import VueRouter from 'vue-router' ;
  
  var app = new Vue({
      el: '#App',
      data: {
        message: 'Hello Vue!'
      }
    })
  
  export default new Router({
      routes: [
          {
              path: 'http://localhost/HAD_point_of_sale/',
              redirect: {
                  name: "login"
              }
          },
          {
              path: 'http://localhost/HAD_point_of_sale/karyawan',
              redirect: {
                  name: "karyawan"
              }
          }
      ]
  })
  </code></pre>
  
  <p>than i got an error :
  <a href="https://i.stack.imgur.com/NBFmz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NBFmz.png" alt="error vue"></a></p>
  
  <p><a href="https://i.stack.imgur.com/SfoBf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SfoBf.png" alt="enter image description here"></a></p>