title: export 'default' (imported as Vue ) was not found in 'vue'
body: <p>I am new with this vue and I got this error when I try to run (npm run serve):</p>
  <pre><code>***WARNING Compiled with 4 warnings
  warning in ./src/main.js
  &quot;export 'default' (imported as 'Vue') was not found in 'vue'
  warning in ./src/main.js
  &quot;export 'default' (imported as 'Vue') was not found in 'vue'
  warning in ./src/main.js
  &quot;export 'default' (imported as 'Vue') was not found in 'vue'
  warning in ./src/router/index.js
  &quot;export 'default' (imported as 'Vue') was not found in 'vue'
  </code></pre>
  <p>App running at:</p>
  <ul>
  <li>Local: http://localhost:8080/</li>
  <li>Network: <a href="http://10.2.220.30:8080/**" rel="nofollow noreferrer">http://10.2.220.30:8080/**</a>*</li>
  </ul>
  <p>index.js</p>
  <pre class="lang-js prettyprint-override"><code>import Vue from &quot;vue&quot;;
  import VueRouter from &quot;vue-router&quot;;
  import Home from &quot;../views/Home.vue&quot;;
  Vue.use(VueRouter);
  const routes = [{
          path: &quot;/home&quot;,
          name: &quot;home&quot;,
          component: Home,
          meta: {
              requiresAuth: true
          }
      },
      {
          path: &quot;/&quot;,
          name: &quot;login&quot;,
          component: () =&gt;
              import (&quot;../views/login.vue&quot;)
      },
      {
          path: &quot;/register&quot;,
          name: &quot;register&quot;,
          component: () =&gt;
              import (&quot;../views/register.vue&quot;)
      }
  ];
  const router = new VueRouter({
      mode: &quot;history&quot;,
      base: process.env.BASE_URL,
      routes
  });
  router.beforeEach((to, from, next) =&gt; {
      if (to.matched.some(record =&gt; record.meta.requiresAuth)) {
          if (localStorage.getItem(&quot;jwt&quot;) == null) {
              next({
                  path: &quot;/&quot;
              });
          } else {
              next();
          }
      } else {
          next();
      }
  });
  export default router;
  </code></pre>
  <p>main.js</p>
  <pre class="lang-js prettyprint-override"><code>import Vue from &quot;vue&quot;;
  import App from &quot;./App.vue&quot;;
  import router from &quot;./router&quot;;
  import axios from &quot;axios&quot;;
  import &quot;bootstrap/dist/css/bootstrap.css&quot;;
  
  const base = axios.create({
      baseURL: &quot;http://localhost:4000&quot;
  });
  
  Vue.prototype.$http = base;
  Vue.config.productionTip = false;
  new Vue({
      router,
      render: h =&gt; h(App)
  }).$mount(&quot;#app&quot;);
  </code></pre>