Too much memory used for typescript compilation
See original GitHub issueConfirm by changing [ ] to [x] below to ensure that it’s a bug:
- I’ve gone though Developer Guide and API reference
- I’ve checked AWS Forums and StackOverflow for answers
- I’ve searched for previous similar issues and didn’t find any solution
Describe the bug Too much memory used for typescript compilation. Duplicate of https://github.com/aws/aws-sdk-js/issues/2846.
Bringing this up again since I think it is a serious enough problem that we can’t compile even the hello world of the SDK in a EC2 linux t3.micro machine. Running it with --max-old-space-size=4096 and 1 GB swap works, but I don’t think it should take so much memory to compile just this small program.
Is the issue in the browser/Node.js? Node.js
If on Node.js, are you running this on AWS Lambda? No
Details of the browser/Node.js version v12.13.0
SDK version number Example: 2.597.0
To Reproduce (observed behavior) Just trying to compile this one line TS file results in a out of memory error on a t3.micro AWS instance with nothing else running on it!
import CloudFront from "aws-sdk/clients/cloudfront";
Expected behavior I wanted the program to compile
Screenshots
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:8 (3 by maintainers)
@trivikr thanks! I had a unused devdependency of aws-sdk which was making tsc eat all my ram!
Verified that this issue is fixed in
aws-sdk@2.740.0
by updating dependency in repro repo https://github.com/JakeGinnivan/aws-sdk-deep-imports