Hi,
I'm getting the following error even though my mapping function is not async. I'm using the mapFrom method.
Error: Impossible to use asynchronous mapping using automapper.map(); use automapper.mapAsync() instead
I've tracked the issue down to automapper.js in the dist folder.
See below. The async property is getting set to true if there are 2 parameterNames. I'm not sure what parameterNames is, it looks like a serialization of the mapping function. There is nothing async in my mapping function.


Can you explain to me what this is trying to achieve or a way i can avoid this issue?
thanks
Mat
Hi,
I'm getting the following error even though my mapping function is not async. I'm using the mapFrom method.
Error: Impossible to use asynchronous mapping using automapper.map(); use automapper.mapAsync() instead
I've tracked the issue down to automapper.js in the dist folder.
See below. The async property is getting set to true if there are 2 parameterNames. I'm not sure what parameterNames is, it looks like a serialization of the mapping function. There is nothing async in my mapping function.
Can you explain to me what this is trying to achieve or a way i can avoid this issue?
thanks
Mat