Hi,
I have the below code and when i did i am getting lots of errors:
import AWS from 'aws-sdk';
AWS.config.region = 'ap-south-1';
const s3Client = new AWS.S3();
const params = {
Bucket: 'angular-upload-files',
Key: 'test/',
ACL: 'public-read',
Body: 'body does not matter'
};
the error is with the import line of code
import AWS from 'aws-sdk';
i get this error:
Error: node_modules/aws-sdk/clients/codeguruprofiler.d.ts:239:30 - error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.