question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CDK8s 2.x.x, RangeError: Maximum call stack size exceeded

See original GitHub issue

all cdk8s:“1.x.x” working great, this only happens with "dependencies": { "cdk8s": "^2.x.x", ...

/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:5 function resolve(value) { ^

RangeError: Maximum call stack size exceeded at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:5:17) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) at resolve (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s/lib/_resolve.js:27:21) Error: command "node main.js " at /home/ubuntu/IdeaProjects/cdk8s returned a non-zero exit code 1 at ChildProcess.<anonymous> (/home/ubuntu/IdeaProjects/cdk8s/node_modules/cdk8s-cli/lib/util.js:50:27) command "node main.js " at /home/ubuntu/IdeaProjects/cdk8s returned a non-zero exit code 1

at Object.onceWrapper (node:events:510:26)
at ChildProcess.emit (node:events:390:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

Task :cdk8s_build FAILED

Execution failed for task ‘:cdk8s_build’.

Process ‘command ‘/home/ubuntu/IdeaProjects/cdk8s/.gradle/npm/npm-v8.11.0/bin/npm’’ finished with non-zero exit value 1

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. `

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jakubknejzlikcommented, Nov 7, 2022

Hello, I just hit same error with this sample code:

const configMap = new kplus.ConfigMap(chart, 'ConfigMap', {
  data: {FOO:'blah'},
});
const deployment = new kplus.Deployment(this, 'BookstoreWebsite', {
  containers: [{ 
    image: 'node', 
    // without this line it works fine
    envFrom: [new kplus.EnvFrom(configMap)] 
  }],
});
new kplus.HorizontalPodAutoscaler(this, 'DeploymentAutoscaler', {
  target: deployment,
  maxReplicas: 20,
  minReplicas: 1,
  metrics: [kplus.Metric.resourceCpu(kplus.MetricTarget.averageUtilization(70))],
});

Versions:

├── @types/jest@26.0.24
├── @types/node@14.18.26
├── cdk8s-cli@2.0.95
├── cdk8s-plus-25@2.0.19
├── cdk8s@2.5.37
├── constructs@10.1.152
├── jest@26.6.3
├── ts-jest@26.5.6
└── typescript@4.8.2
0reactions
ibarrickcommented, Nov 17, 2022

I’ve run into the same issue with HorizontalPodAutoscaler. HPA doesn’t appear to support another way of specifying the target.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · cdk8s-team/cdk8s - GitHub
Support resourceNames field for Role in cdk8s-plus-* ... CDK8s 2.x.x, RangeError: Maximum call stack size exceeded bug This issue is a bug. needs-triage ......
Read more >
JavaScript RangeError: Maximum Call Stack Size Exceeded
The RangeError: Maximum call stack size exceeded is thrown when a function call is made that exceeds the call stack size. This can...
Read more >
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
Uncaught RangeError maximum call stack size exceeded. Fixed
Uncaught RangeError maximum call stack size exceeded. Fixed. var clr = document.getElementsByTagName("button"); //clr.length equals 21 for(x = 0; ...
Read more >
Maximum call stack size exceeded when decoding a long list ...
I ran into the error when decoding a json value which contained a list that had over 4000 elements. I found old posts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found