Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum Call Stack Size error after migrating to v8 #555

Open
4 of 9 tasks
FurqanAthar opened this issue Jun 17, 2023 · 2 comments
Open
4 of 9 tasks

Maximum Call Stack Size error after migrating to v8 #555

FurqanAthar opened this issue Jun 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@FurqanAthar
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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

  • I don't know.
  • @automapper/core
  • @automapper/classes
  • @automapper/nestjs
  • @automapper/pojos
  • @automapper/mikro
  • @automapper/sequelize
  • Other (see below)

Other package and its version

No response

AutoMapper version

8.7.7

Additional context

Linux
Node v14.18.1

@FurqanAthar FurqanAthar added the bug Something isn't working label Jun 17, 2023
@brdar
Copy link

brdar commented Oct 19, 2023

I'm observing the same behavior when upgraded to 8.7.7

@brdar
Copy link

brdar commented Oct 20, 2023

#575 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants