Skip to content

Error: Impossible to use asynchronous mapping using automapper.map(); use automapper.mapAsync() instead #33

@LWB-MatJ

Description

@LWB-MatJ

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.

automapperasyncissue
automapperasyncissue

Can you explain to me what this is trying to achieve or a way i can avoid this issue?

thanks
Mat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions