title: Error: *.default is not a constructor
body: <p>I get the following error, when testing some javascript code, transpiled from a typescript file.</p>
  
  <p>Here is the error:</p>
  
  <pre><code>Error: _mapAction2.default is not a constructor
  </code></pre>
  
  <p>Here is the line of code that caused the error:</p>
  
  <pre><code>var mapAction = new MapAction(MapActionType.POLYGONDRAGGED, []);
  </code></pre>
  
  <p>Here is the original typescript-file <strong>map-action.ts</strong>:</p>
  
  <pre><code>import { IMapAction} from './imap-action';
  import { MapActionType } from './map-action-type.enum';
  import {LatLngLiteral} from 'angular2-google-maps/core';
  
  export class MapAction implements IMapAction{
      type: MapActionType;
      paths: Array&lt;LatLngLiteral&gt;;
  
      constructor(mapActionType: MapActionType, paths: Array&lt;LatLngLiteral&gt;){
          this.type = mapActionType;
          this.paths = paths;
      }
  
      public getType(): MapActionType{
          return this.type;
      }
  
      public getPaths(): Array&lt;LatLngLiteral&gt;
      {
          return this.paths;
      }
  
  }
  </code></pre>
  
  <p>Here is the transpiled .js-file <strong>map-action.js</strong>:</p>
  
  <pre><code>"use strict";
  class MapAction {
      constructor(mapActionType, paths) {
          this.type = mapActionType;
          this.paths = paths;
      }
      getType() {
          return this.type;
      }
      getPaths() {
          return this.paths;
      }
  }
  exports.MapAction = MapAction;
  //# sourceMappingURL=map-action.js.map
  </code></pre>