AutoMapper icon indicating copy to clipboard operation
AutoMapper copied to clipboard

AutoMapper-ts not working for ESM module with NodeJS 20

Open BhargavHyniva opened this issue 8 months ago • 0 comments

How to use automapper-ts in ESM module with nodejs 20 ?

Tried with below code, but it didn't work.

import 'automapper-ts/dist/automapper'; import 'automapper-ts'; type Options = AutoMapperJs.IMemberConfigurationOptions;

automapper.createMap('source', 'destination', true)

Error: Expected 1-2 arguments, but got 3.

I tried with removing 3rd parameter true. But it is not working as expected.

BhargavHyniva avatar Jun 20 '24 13:06 BhargavHyniva