Error: *.default is not a constructor
You need to export a default value which will look like:
export default class MapAction implements IMapAction {...
And import it as:
import MapAction from './map_action_file';
Alternatively, if you want to export multiple things from the module you can do something like:
export class MapAction ...
export class MapSomethng ...
And import it as follows:
import { MapAction, MapSomething } from './map_action_file';
Another solution would be to add "esModuleInterop": true,
into tsconfig.json
.
esModuleInterop
allows default imports from modules with no default export.