ReferenceError: fetch is not defined
Opened this issue · 0 comments
subhasisghosal commented
I was trying to simply delete a file like this:
const s3Deleted = await S3Client.deleteFile('https://my-app.s3.amazonaws.com/tracks/audio.mp3')
but I'm getting this error every time I hit the API to delete:
ReferenceError: fetch is not defined at s.deleteFile (/home/ubuntu/my-api/node_modules/aws-s3/dist/aws-s3.js:1:2808)
Kindly resolve this bug