Open accarvajal opened 1 year ago
Due to the nest start command when throws the error get stuck, I run the command nest start --watch and I noticed that after making some code changes, it rebuilds and throws the following statck trace:
I have the same problem with version 8.7.7
Same issue as well using NestJs 10.2.4 and Typescript 5.1.6, making the plugin not usable.
I see that the last commit or any issues closed by maintainer was in March. @nartc Is the library still maintained and to be utilized in production?
PS: I see that NestJs 10 (that @accarvajal is using as well) is not listed. Is it not supported at the moment?
Update: I see that there's a PR pending (since June, does not solve this issue) adding Nest 10 support that hasn't been merged. In fact nothing has past March.
I've fixed this in my fork https://github.com/ttshivers/mapper
Is there an existing issue for this?
Describe the issue
I'm using package in NestJS v10 and I followed the documentation.
According samples, to avoid decorating classes with @AutoMap(), I can use a transformer plugin that enables automapper to run a before transformer looking for .entity.ts .model.ts, etc. files and add them to a list for mappings. So I configured nest-cli.json as shown below:
However when I run the app by using nest start, it throws the error:
Error Debug Failure. False expression: Too many nodes written to output.
In order to get the app working, I have to remove plugins entry leaving compilerOptions empty.
dependencies used:
Thanks for any help
Models/DTOs/VMs
No response
Mapping configuration
In AppModule:
in AutomapperConfigService:
Steps to reproduce
No response
Expected behavior
The error should not be thrown, the application should start running and allow me to run mapper without using the decorator @AutoMap().
Screenshots
Minimum reproduction code
No response
Package
Other package and its version
No response
AutoMapper version
8.7.7
Additional context
Windows 11