Skip to content

Too much memory used for typescript compilation #3034

Closed
@inian

Description

@inian

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
Too much memory used for typescript compilation. Duplicate of #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue is a duplicate.feature-requestA feature should be added or improved.needs-major-versionCan only be considered for the next major release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions