You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this with the latest version of aws-sam (0.13.0). According to #1137 this was meant to be fixed in #1091, however, that doesn't seem to be the case. After upgrading to the latest version of the cdk the @aws-cdk/aws-serverless works as expected.
Full error output:
[ts]
Argument of type 'this' is not assignable to parameter of type 'Construct'.
Type 'QuizStack' is not assignable to type 'Construct'.
Types of property 'parent' are incompatible.
Type 'import("/Users/joe/code/quiz/node_modules/@aws-cdk/cdk/lib/core/construct").Construct | undefined' is not assignable to type 'import("/Users/joe/code/quiz/node_modules/@aws-cdk/aws-sam/node_modules/@aws-cdk/cdk/lib/core/construct").Construct | undefined'.
Type 'import("/Users/joe/code/quiz/node_modules/@aws-cdk/cdk/lib/core/construct").Construct' is not assignable to type 'import("/Users/joe/code/quiz/node_modules/@aws-cdk/aws-sam/node_modules/@aws-cdk/cdk/lib/core/construct").Construct'.
Types have separate declarations of a private property '_children'. [2345]
The text was updated successfully, but these errors were encountered:
iamatypeofwalrus
changed the title
Typescript @aws-cdk/sam and @aws-cdk/serverless contain their own version of the CDK
Typescript @aws-cdk/aws-sam and @aws-cdk/aws-serverless contain their own version of the CDK
Dec 11, 2018
iamatypeofwalrus
changed the title
Typescript @aws-cdk/aws-sam and @aws-cdk/aws-serverless contain their own version of the CDK
Typescript @aws-cdk/aws-sam contains its own version of the CDK
Dec 11, 2018
I ran into this with the latest version of aws-sam (
0.13.0
). According to #1137 this was meant to be fixed in #1091, however, that doesn't seem to be the case. After upgrading to the latest version of the cdk the@aws-cdk/aws-serverless
works as expected.Full error output:
CDK Version: 0.19.0 (build 2625a05)
Package dot JSON:
The text was updated successfully, but these errors were encountered: