Closed VivithaAlamur closed 5 years ago
Hi @VivithaAlamur, It looks like those errors are all asking the same thing. Have you tried running npm i @types/node
and adding node
to the types field in your tsconfig? If you have, I'll work on reproducing and resolving this.
@VivithaAlamur, one thought is that your @types/node is two major versions behind. The current version is 10.12.21. Using the caret range won't update you to major versions. If you are able to do so, could you please try updating to the newest version and see if that fixes your problem?
@klaytaybai i updated the "@types/node": "^10.12.21" to latest and i added "types": ["node"] in tsconfig.app.json file but the issue still exist.
{ "name": "optical-store", "version": "8.5.1", "peerDependencies": { "@angular/common": "^7.2.0", "@angular/core": "^7.2.0", "@lodash.merge": "^4.6.1", "@angular/http": "^7.2.0", "@angular/router": "^7.2.0", "rxjs": "^6.3.3", "@angular/forms": "^7.2.0", "ag-grid": "^17.1.1", "ag-grid-angular": "^17.1.0", "ngx-virtual-scroller": "^1.0.15", "@angular/material": "^7.1.1", "@angular/flex-layout": "^6.0.0-beta.16", "ngx-toastr": "^9.1.1", "@angular/cdk": "^7.1.1", "@ngrx/store": "^7.1.0", "@ngrx/store-devtools": "^7.1.0", "ngx-auto-unsubscribe": "^2.4.1", "aws-sdk": "^2.270.1", "@ngx-translate/core": "^10.0.2", "@ngx-translate/http-loader": "^3.0.1", "@types/node": "^10.12.21" }
@klaytaybai for angular7 app this is working, if i am trying to creating the library using the angular cli this is not working (ng build libraryname --prod).
I am also having this issue on Angular 7, with latest (11.9.4) version of @types/node and the "types": ["node"] declaration in tsconfig.json
In case it helps anyone, what finally worked was putting "types": ["node"] in src/tsconfig.app.json
and not tsconfig.json
@VivithaAlamur Does @hughjdavey's suggestion resolve your issue?
Yeah that is working for me .Thank you
On Fri, Feb 22, 2019 at 5:43 AM Chase Coalwell notifications@github.com wrote:
@VivithaAlamur https://github.com/VivithaAlamur Does @hughjdavey https://github.com/hughjdavey's suggestion resolve your issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws/aws-sdk-js/issues/2515#issuecomment-466221466, or mute the thread https://github.com/notifications/unsubscribe-auth/AZCPkiGmUPkIAM2EBniWB-mexG7zgKtvks5vPzY7gaJpZM4agr-r .
-- vivitha
Thanks @hughjdavey I had similar issue and your suggestion resolved my issue. Thanks a ton.
Locking this issue as it has been resolved, and has been inactive for 4 months.
We are also facing the same issue while building the library in angular7. our package.json file inside library:: { "name": "common-registration", "version": "0.0.1-5", "peerDependencies": { "@angular/common": "^7.2.0", "@angular/core": "^7.2.0", "@lodash.merge": "^4.6.1", "@angular/http": "^7.2.0", "@angular/router": "^7.2.0", "rxjs": "^6.3.3", "@angular/forms": "^7.2.0", "@angular/material": "^7.1.1", "ngx-toastr": "^9.1.1", "@angular/cdk": "^7.1.1", "ngx-auto-unsubscribe": "^2.4.1", "aws-sdk": "^2.270.1", "ngx-webstorage": "^3.0.0-beta.14", "@ng-select/ng-select": "^2.14.0", "@ngx-translate/core": "^10.0.2", "@ngx-translate/http-loader": "^3.0.1", "@types/node": "^8.10.26" } } package.json for app
{ "name": "registration", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "prebuild:library:dev": "cross-env LIB_ENV=dev node projects/common-registration/src/lib/environment-switcher.js", "build:library:dev": "ng build common-registration --prod", "prebuild:library:qa": "cross-env LIB_ENV=qa node projects/common-registration/src/lib/environment-switcher.js", "build:library:qa": "ng build common-registration --prod", "prebuild:library:prod": "cross-env LIB_ENV=prod node projects/common-registration/src/lib/environment-switcher.js", "build:library:prod": "ng build common-registration --prod" }, "private": true, "dependencies": { "@angular/animations": "~7.2.0", "@angular/cdk": "^7.1.1", "@angular/common": "^7.2.0", "@angular/compiler": "~7.2.0", "@angular/core": "^7.2.0", "@angular/forms": "^7.2.0", "@angular/http": "^7.2.0", "@angular/material": "^7.1.1", "@angular/platform-browser": "~7.2.0", "@angular/platform-browser-dynamic": "~7.2.0", "@angular/router": "^7.2.0", "@ng-select/ng-select": "^2.14.0", "@ngx-translate/core": "^10.0.2", "@ngx-translate/http-loader": "^3.0.1", "aws-sdk": "^2.270.1", "core-js": "^2.5.4", "lodash.merge": "^4.6.1", "ngx-auto-unsubscribe": "^2.4.1", "ngx-toastr": "^9.1.1", "ngx-webstorage": "^3.0.0-beta.14", "rxjs": "^6.3.3", "tslib": "^1.9.0", "zone.js": "~0.8.26" }, "devDependencies": { "@angular-devkit/build-angular": "~0.12.0", "@angular-devkit/build-ng-packagr": "~0.12.0", "@angular/cli": "~7.2.3", "@angular/compiler-cli": "~7.2.0", "@angular/language-service": "~7.2.0", "@types/jasmine": "~2.8.8", "@types/jasminewd2": "~2.0.3", "@types/node": "^8.10.39", "codelyzer": "~4.5.0", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~3.1.1", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", "ng-packagr": "^4.2.0", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tsickle": ">=0.34.0", "tslib": "^1.9.0", "tslint": "~5.11.0", "typescript": "~3.2.2" } }
tsconfig.app.json { "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": ["node"] }, "exclude": [ "test.ts", "*/.spec.ts" ] }
tsconfig.json
{ "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2015", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "types": [ "node" ], "lib": [ "es2018", "dom" ], "paths": { "common-registration": [ "dist/common-registration" ], "common-registration/": [ "dist/common-registration/" ] } } }
Facing build error
BUILD ERROR node_modules/aws-sdk/lib/http_response.d.ts(1,25): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/lib/http_response.d.ts(14,18): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try
npm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/acm.d.ts(132,37): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/acm.d.ts(134,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/acm.d.ts(468,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/acm.d.ts(470,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/apigateway.d.ts(1146,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/clouddirectory.d.ts(1573,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/cloudsearchdomain.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/cloudsearchdomain.d.ts(42,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/cloudtrail.d.ts(141,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/codecommit.d.ts(634,29): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/codecommit.d.ts(1601,22): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts(2581,31): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/directconnect.d.ts(992,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/dms.d.ts(448,35): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/lib/dynamodb/document_client.d.ts(2,25): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/lib/dynamodb/document_client.d.ts(93,30): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/lib/dynamodb/document_client.d.ts(274,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/dynamodb.d.ts(498,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/dynamodbstreams.d.ts(92,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/ec2.d.ts(3074,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/ecr.d.ts(767,31): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/firehose.d.ts(182,22): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/lib/services/glacier.d.ts(10,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/glacier.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/glacier.d.ts(1313,24): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iam.d.ts(1120,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iam.d.ts(3118,35): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iot.d.ts(4487,27): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iotdata.d.ts(73,30): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iotdata.d.ts(74,25): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/kinesis.d.ts(237,22): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/kms.d.ts(328,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/kms.d.ts(962,31): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/lambda.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/lambda.d.ts(372,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/lambda.d.ts(373,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/lexruntime.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/lexruntime.d.ts(35,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/polly.d.ts(8,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/polly.d.ts(70,29): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/rekognition.d.ts(1135,27): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/ses.d.ts(1513,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/sns.d.ts(275,24): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/sqs.d.ts(216,24): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/ssm.d.ts(4954,48): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/support.d.ts(336,22): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/waf.d.ts(628,39): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/wafregional.d.ts(672,39): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/lexmodelbuildingservice.d.ts(306,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/mobile.d.ts(106,26): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/mediastoredata.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/mediastoredata.d.ts(199,29): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/appsync.d.ts(248,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts(7,24): error TS2307: Cannot find module 'stream'.node_modules/aws-sdk/clients/kinesisvideoarchivedmedia.d.ts(121,25): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/kinesisvideomedia.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/kinesisvideomedia.d.ts(53,25): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/sagemakerruntime.d.ts(24,26): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/acmpca.d.ts(283,37): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/acmpca.d.ts(285,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/acmpca.d.ts(353,25): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/secretsmanager.d.ts(627,34): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iotanalytics.d.ts(1007,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/lib/config.d.ts(1,34): error TS2307: Cannot find module 'http'. node_modules/aws-sdk/lib/config.d.ts(2,35): error TS2307: Cannot find module 'https'. node_modules/aws-sdk/lib/request.d.ts(1,25): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/lib/request.d.ts(132,45): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/lib/event-stream/event-stream.d.ts(1,55): error TS2503: Cannot find namespace 'NodeJS'. node_modules/aws-sdk/clients/s3.d.ts(11,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/s3.d.ts(787,22): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/s3.d.ts(1151,42): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/s3.d.ts(3347,15): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/s3.d.ts(3553,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. Error: node_modules/aws-sdk/lib/http_response.d.ts(1,25): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/lib/http_response.d.ts(14,18): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/acm.d.ts(132,37): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/acm.d.ts(134,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/acm.d.ts(468,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/acm.d.ts(470,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/apigateway.d.ts(1146,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/clouddirectory.d.ts(1573,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/cloudsearchdomain.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/cloudsearchdomain.d.ts(42,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/cloudtrail.d.ts(141,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/codecommit.d.ts(634,29): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/codecommit.d.ts(1601,22): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts(2581,31): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/directconnect.d.ts(992,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/dms.d.ts(448,35): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/lib/dynamodb/document_client.d.ts(2,25): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/lib/dynamodb/document_client.d.ts(93,30): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/lib/dynamodb/document_client.d.ts(274,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/dynamodb.d.ts(498,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/dynamodbstreams.d.ts(92,38): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/ec2.d.ts(3074,23): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/ecr.d.ts(767,31): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.node_modules/aws-sdk/clients/firehose.d.ts(182,22): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/lib/services/glacier.d.ts(10,28): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/glacier.d.ts(7,24): error TS2307: Cannot find module 'stream'. node_modules/aws-sdk/clients/glacier.d.ts(1313,24): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iam.d.ts(1120,32): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iam.d.ts(3118,35): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iot.d.ts(4487,27): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iotdata.d.ts(73,30): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig. node_modules/aws-sdk/clients/iotdata.d.ts(74,25): error TS2580: Cannot find name 'Buffer'. Do you need to install type definitions for node? Trynpm i @types/node
and then addnode
to the types field in your tsconfig.Originally posted by @VivithaAlamur in https://github.com/aws/aws-sdk-js/issues/1944#issuecomment-459966976