nestjsx/automapper

Missing definition files

abinici opened this issue ยท 7 comments

Hi,

I was looking for a mapper library for my NestJS project and found this project.

But I ran into an issue during setup. When I added the module to my main module, VS Code was not able to auto import this module.

Then I looked in node_modules/nestjs-automapper and saw that there were only js files:

image

The typescript definition files seems to be missing.

gpa commented

I also just was looking at this library and ran into this issue.
By downgrading to 2.0.30 I could get the types back but I couldn't bring the .map method to work. It throws even though my types are correct and mappings in the injected mapper instance registered. An example nestjs project would be really useful.

nartc commented

Thanks for reporting. I'll take a look asap :)

I actually ended up adding the previous project as a module in my NestJS project:

https://github.com/nartc/nest-automapper

When this issue gets fixed, then I can move back to this project.

nartc commented

@abinici That library uses an old automapper (deprecated) of mine. Please use the nestjsx-automapper one. I just pushed a release. I'll test on an example app then will get back to you

nartc commented

๐ŸŽ‰ This issue has been resolved in version 2.0.36 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

nartc commented

@abinici @gpa
image
definitions should be there again :) Sorry for the inconvenience.

Thank you @nartc for the quick response and help, I will give it a try :)