title: Vue.js 2: How to initialize(construct) a Vue component from a .vue file?
body: <p>I'm trying to create a Component instance:</p>
  
  <h3><code>App.vue</code></h3>
  
  <pre><code>import MyComponent from './components/MyCompnent.vue';
  export default {
      mounted() {
          // The following line fails.
          const vm = new MyComponent();
          vm.$mount('#some-place');
      }
  }
  </code></pre>
  
  <p>and the <code>new</code> line reports an error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: MyComponent.default is not a constructor</p>
  </blockquote>
  
  <p>So how if I want to create the component?</p>