Hay un error, EntityRepository está depreciado
`@EntityRepository(User) export class UsersRepository extends Repository<User>{ async createUser(authCredentialDto: AuthCredentialDto): Promise<void> { const { username , password} = authCredentialDto; const user = this.create({username, password}); await this.save(user); } }`