-
Notifications
You must be signed in to change notification settings - Fork 4k
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
CLI hangs with "unexpected: --output is required" (is it related to NodejsFunction?) #8921
Comments
Please run with Copy @jogold |
|
@eladb the error seems to originate from here: aws-cdk/packages/aws-cdk/lib/api/cxapp/exec.ts Lines 59 to 61 in ae2378c
any idea what might cause this and how it could be related to the |
For some reason, the |
The output of executing "cdk synth -verbose": cdk-synth-verbose.txt The output of executing "cdk synth -verbose -o cdk.out": cdk-synth-verbose-output.txt |
@th3r10n and you don't get the Would be great if you could share a GitHub repo to reproduce this. |
@jogold , If I remove the NodejsFunction construct I get: The output of executing "cdk synth -verbose": cdk-synth-verbose-no-function.txt The output of executing "cdk synth -verbose -o cdk.out": cdk-synth-verbose-output-no-function.txt However, without the above mentioned construct, "cdk synth" works fine. The GitHub repo with the code is available here: https://github.com/th3r10n/controller.git |
This is an empty project. I don't see any |
@jogold , My mistake, I've populated the repo now. I have problems to synthesize it. |
The code currently doesn't reference any |
@jogold , The Be that as it may. I let the cdk synth/deploy commands just hang there, turns out they are returning successfully but only after a long time compared to when the |
@th3r10n just pulled the latest version of your repo. $ time npm run cdk synth
real 0m7.170s
user 0m4.661s
sys 0m0.286s Can you detail your OS/Docker setup maybe? |
What's the status here @jogold ? |
I was able to successfully synthesize...
@th3r10n how long? only on the first run? The first run could take more time if the bundling Docker image is not already built and cached. |
@jogold , If the NodeJSFunction is present, its taking around the ball park of 30 s not withstanding wether it's the first or a subsequent run: Without it, it's way less: |
@th3r10n are you on macOS? |
Yes @jogold. I'm on macOS. |
OK, this is a duplicate of #9120 |
Dup #9120 |
After adding a NodejsFunction construct to my stack and having succesfully
controller.zip
Reproduction Steps
Error Log
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: