Error: *.default is not a constructor
问题 I get the following error, when testing some javascript code, transpiled from a typescript file. Here is the error: Error: _mapAction2.default is not a constructor Here is the line of code that caused the error: var mapAction = new MapAction(MapActionType.POLYGONDRAGGED, []); Here is the original typescript-file map-action.ts : import { IMapAction} from './imap-action'; import { MapActionType } from './map-action-type.enum'; import {LatLngLiteral} from 'angular2-google-maps/core'; export