-
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
[aws-lambda-nodejs] 1.62.0 - fails to compile #10210
Comments
Are you sure all your modules are on 1.62.0? |
yes. |
@mbonig this is an error from |
Works fine with a regular Function. |
@mbonig I'm now able to reproduce. Very strange... on it. This is almost exactly the same https://github.com/jogold/cdk-s3-thumbnail but it works on 1.62.0... |
OK I found the issue 😄 For some unknown reason your This leads to I think that the multiple copies of aws-cdk/packages/@aws-cdk/core/lib/app.ts Lines 83 to 85 in 287f808
@mbonig how did you end up with this @eladb you should have a look at this. Issue should be renamed to something like |
This was a very clean and basic new CDK module. So all I did to get here was a |
Which version of npm are you using? I cannot reproduce this. I'm doing: $ mkdir cdk-lock-file-test
$ cd cdk-lock-file-test
$ npx cdk init --language=typescript
$ npm i @aws-cdk/aws-lambda-nodejs And then I don't have the nested From this commit mbonig/nodejs-fails-example@25fd365 it looks like it happened during an update from 1.60.0 to 1.62.0. |
Looks like this comes from the bump-cdk tool I had used to upgrade the versions. Closing this and reviewing the tool. Thanks! |
While trying to
cdk synth
a NodejsFunction construct, it errors:unable to determine cloud assembly output directory. Assets must be defined indirectly within a "Stage" or an "App" scope
This problem does not exist if I rollback to 1.61.0
Reproduction Steps
Here is a repo that reproduces the problem:
https://github.com/mbonig/nodejs-fails-example
What did you expect to happen?
I expected the synth to work like it did in 1.61.0
What actually happened?
Got an error and the template failed to synth
Environment
CLI Version : 1.62.0
Framework Version: 1.62.0
Node.js Version: v12.16.1
OS : Distributor ID: LinuxMint
Description: Linux Mint 19.3 Tricia
Release: 19.3
Codename: tricia
Language (Version): Typescript
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: