previously I worked on nest v9 project for that automapper worked perfectly, but when it comes to v10, @automapper/nestjs for this package i have to install it forcibly.
import { User } from '@/domain/models/user';
import { Mapper, createMap } from '@automapper/core';
import { AutomapperProfile, InjectMapper } from '@automapper/nestjs';
import { Injectable } from '@nestjs/common';
import { CreateUserDto } from './create-user.dto';
@Injectable()
export class UserMapperProfile extends AutomapperProfile {
constructor(@InjectMapper() mapper: Mapper) {
super(mapper);
}
override get profile() {
return (mapper: Mapper) => {
createMap(mapper, CreateUserDto, User);
};
}
}
for the injectmapper it shoes this error, previous time, I set the ts check in vs code to workspace settings and avoid that isuue, This time it wont help to me.
Are there any fixes for new nest v10