AutoMapper
AutoMapper copied to clipboard
AutoMapper-ts not working for ESM module with NodeJS 20
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.