μ€λ₯
1) Cannot find module '@aws-sdk/util-endpoints'
2) this.client.send is not a function
Node.js νλ‘μ νΈμμ aws-sdkμ multer-s3 λ₯Ό μ΄μ©ν΄μ μ΄λ―Έμ§ μ λ‘λ κΈ°λ₯μ ꡬννλ μ€ λ§λ μ€λ₯μ΄λ€.
ν΄κ²°
λκ°μ§ μ€λ₯λ μ λΆ ν¨ν€μ§ κ° λ²μ νΈνμ΄ μλμ΄μ μκΈ°λ μ΄μμλ€.
κ²μν΄λ³΄λ multer-s3 2.xλ aws-sdk 2.xμ νΈνλκ³ ,
multer-s3 3.xλ aws-sdk 3.xμ νΈνλλ€κ³ νλ€.
λ΄κ° μ€μΉν aws-sdkλ 2.x λ²μ μ΄κ³ multer-s3 μ 3.x λ²μ μ΄μ΄μ λ€μ΄κ·Έλ μ΄λκ° νμνλ€.
μλμ κ°μ΄ κΈ°μ‘΄μ μ€μΉλμ΄ μλ multer-s3 λ₯Ό μμ νκ³ , 2.x λ²μ μΌλ‘ μ€μΉ ν΄μ£Όμλλ μλ¬κ° ν΄κ²°λμλ€.
npm uninstall multer-s3
npm i multer-s3@2.10.0
μ°Έκ³
MulterS3 is giving this.client.send is not a function error
Note: Getting below error in multer s3. This error is pointing NPM module and I really don't understand the issue with this module. I have used upload.single as well as upload.array method to check...
stackoverflow.com
https://github.com/anacronw/multer-s3/issues/169
this.client.send is not a function · Issue #169 · anacronw/multer-s3
I've been trying to get around this error for a while but it keeps popping up, and S3 keeps billing me the requests even if no files are being uploaded. This is my code: require("dotenv&qu...
github.com