nartc / mapper

🔥 An Object-Object AutoMapper for TypeScript 🔥
https://automapperts.netlify.app/
MIT License
976 stars 86 forks source link

Maximum Call Stack Size error after migrating to v8 #555

Open FurqanAthar opened 1 year ago

FurqanAthar commented 1 year ago

Is there an existing issue for this?

Describe the issue

After upgrading Automapper to v8 and fixing all the breaking changes, my application is returning error of maximum call stack size at ApplyMetaData.

Screenshot from 2023-06-17 23-39-57

My jest unit tests are also not running and returning mapping between class A and class B cannot be found error even though there are mappings present and injected as well.

See image below of the code.

image

The mapper returned by the createMapper is not actually the empty proxy and produces the below error when running tests.

image

Models/DTOs/VMs

No response

Mapping configuration

No response

Steps to reproduce

No response

Expected behavior

It should return the mapper instance and not give maximum call stack error and should get the mapping as defined.

Screenshots

No response

Minimum reproduction code

No response

Package

Other package and its version

No response

AutoMapper version

8.7.7

Additional context

Linux Node v14.18.1

brdar commented 11 months ago

I'm observing the same behavior when upgraded to 8.7.7

brdar commented 11 months ago

https://github.com/nartc/mapper/issues/575#issuecomment-1772438855

Imunal commented 3 weeks ago

Anyone figure it out? I'm having the same problem, and i don't know is this library related, or i fucked something up.