-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-cdk-lib): Reached heap limit Allocation failed - JavaScript heap out of memory #25092
Comments
Hi @robertd I was testing on gitpod and |
@pahud Same here Have you tried it on your local box too, or just on gitpod? |
@kaizencc suggested running it with ➜ aws-cdk-lib git:(main) NODE_OPTIONS=--max_old_space_size=8192 yarn watch
yarn run v1.22.19
$ cdk-watch
9:42:10 AM - Starting compilation in watch mode...
aws-apigateway/lib/domain-name.ts:132:19 - warning JSII5019: The property name "domainName" conflicts with the declaring class "DomainName". This will result in renaming the class to "_DomainName" in C#. Consider renaming "domainName".
132 public readonly domainName: string;
~~~~~~~~~~
aws-apigateway/lib/domain-name.ts:117:14
117 export class DomainName extends Resource implements IDomainName {
~~~~~~~~~~
The declaring class is introduced here
aws-apigateway/lib/gateway-response.ts:217:19 - warning JSII5019: The property name "responseType" conflicts with the declaring class "ResponseType". This will result in renaming the class to "_ResponseType" in C#. Consider renaming "responseType".
217 public readonly responseType: string;
~~~~~~~~~~~~
aws-apigateway/lib/gateway-response.ts:101:14
101 export class ResponseType {
~~~~~~~~~~~~
The declaring class is introduced here
aws-codepipeline/lib/artifact.ts:15:17 - warning JSII5019: The method name "artifact" conflicts with the declaring class "Artifact". This will result in renaming the class to "_Artifact" in C#. Consider renaming "artifact".
15 public static artifact(name: string): Artifact {
~~~~~~~~
aws-codepipeline/lib/artifact.ts:8:14
8 export class Artifact {
~~~~~~~~
The declaring class is introduced here
aws-codepipeline/lib/artifact.ts:124:17 - warning JSII5019: The method name "artifactPath" conflicts with the declaring class "ArtifactPath". This will result in renaming the class to "_ArtifactPath" in C#. Consider renaming "artifactPath".
124 public static artifactPath(artifactName: string, fileName: string): ArtifactPath {
~~~~~~~~~~~~
aws-codepipeline/lib/artifact.ts:123:14
123 export class ArtifactPath {
~~~~~~~~~~~~
The declaring class is introduced here
aws-ec2/lib/connections.ts:69:19 - warning JSII5019: The property name "connections" conflicts with the declaring class "Connections". This will result in renaming the class to "_Connections" in C#. Consider renaming "connections".
69 public readonly connections: Connections;
~~~~~~~~~~~
aws-ec2/lib/connections.ts:68:14
68 export class Connections implements IConnectable {
~~~~~~~~~~~
The declaring class is introduced here
aws-ec2/lib/instance.ts:309:19 - warning JSII5019: The property name "instance" conflicts with the declaring class "Instance". This will result in renaming the class to "_Instance" in C#. Consider renaming "instance".
309 public readonly instance: CfnInstance;
~~~~~~~~
aws-ec2/lib/instance.ts:279:14
279 export class Instance extends Resource implements IInstance {
~~~~~~~~
The declaring class is introduced here
aws-ecr-assets/lib/image-asset.ts:80:39 - warning JSII5019: The property name "platform" conflicts with the declaring class "Platform". This will result in renaming the class to "_Platform" in C#. Consider renaming "platform".
80 private constructor(public readonly platform: string) { }
~~~~~~~~
aws-ecr-assets/lib/image-asset.ts:56:14
56 export class Platform {
~~~~~~~~
The declaring class is introduced here
aws-lambda/lib/lambda-version.ts:180:19 - warning JSII5019: The property name "version" conflicts with the declaring class "Version". This will result in renaming the class to "_Version" in C#. Consider renaming "version".
180 public readonly version: string;
~~~~~~~
aws-lambda/lib/lambda-version.ts:114:14
114 export class Version extends QualifiedFunctionBase implements IVersion {
~~~~~~~
The declaring class is introduced here
9:50:33 AM - Found 0 errors. Watching for file changes. |
I experienced the same issue. Is there a way to only build/watch single submodules? |
@pahud documented workaround... closing... |
|
Describe the bug
When running
yarn build
oryarn watch
inaws-cdk-lib
directory while working on adding new features, I keep gettingFATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
error.Expected Behavior
yarn build
oryarn watch
to work.Current Behavior
I cannot build/test locally due to
JavaScript heap out of memory
error.Reproduction Steps
cd aws-cdk/packages/aws-cdk-lib ../../buildup yarn watch
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.73.0
Framework Version
No response
Node.js Version
18.15.0
OS
macOS Monterey
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: