-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hello,
we have an Angular 6 webapp and we use your automapper, thank you very much.
In a refactoring task we started to use the .withProfile functionality. I created the profiles in a seperate file/class. But after a while we discovered, that the automapper does not work in the Edge browser anymore.
I then tried to mimic the profiles by creating static functions, that only call automapper.createMap(); for the respective models.
These functions get called in a initialize function, so the mappings are created once at a single place.
Unfortunately this leads to problems with Edge again. It only works if the static methods get called in the component/service where the mapping happens.
Interestingly, automapper does not complain about missing maps.
I think this sounds like some kind of context problem. But on the other hand the maps are global, aren't they?
I import automapper-ts with
import { } from 'automapper-ts';
I also tried
import * as automapper from 'automapper-ts';
but this doesn't made a difference.
I don't know if this is a bug or if Edge is just not supported. Maybe the problem is in our app. Any information or suggestion is highly appreciated.