TIL
[Error] AWS-SDK, multer - this.client.send is not a function
기주그지마
2024. 3. 19. 17:31
이미지를 업로드하는 기능을 추가하기위해서, multer와 sdk 모듈을 사용하다보면 에러가 발생한다.
TypeError: this.client.send is not a function
multer-s3는 3.x.x 버전이고, aws-sdk는 2.x.x버전일때 다음과같은에러가 발생한다
multer-s3를 다운그레이드하여 2.x.x로 맞춰주면 해결된다
multer-s3 삭제 | npm uninstall multer-s3 |
multer-s3 재설치 | npm install multer-s3@2.9.0 |