Skip to content
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

Unable to use cloudcomponents for cdk version 2 #168

Open
ramesh82 opened this issue Mar 25, 2022 · 2 comments
Open

Unable to use cloudcomponents for cdk version 2 #168

ramesh82 opened this issue Mar 25, 2022 · 2 comments

Comments

@ramesh82
Copy link

Hi,

I am getting type errors when using @cloudcomponents/cdk-codepipeline-slack for cdk version 2.
Is there any feature request or work in progress for cdk version 2 support?

@ramesh82 ramesh82 changed the title Unable use cloudcomponents for cdk version 2 Unable to use cloudcomponents for cdk version 2 Mar 25, 2022
@stephenwiebe
Copy link

@hupe1980 Any word on this? We're getting this error with version 2.1.0 with CDK 2:

/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/constructs/src/construct.ts:362
        throw new Error(`the construct "${this.path}" has a "${method}()" method which is no longer supported. Use "construct.node.addValidation()" to add validations to a construct`);
              ^
Error: the construct "CdkShopvoxComputePipeline/ShopvoxStaging/Staging/PipelineBuild/SlackNotifier" has a "validate()" method which is no longer supported. Use "construct.node.addValidation()" to add validations to a construct
    at Node.validate (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/constructs/src/construct.ts:362:15)
    at /home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:1:2940
    at visit (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:3:64)
    at visit (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:3:141)
    at visit (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:3:141)
    at visit (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:3:141)
    at validateTree (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:1:2875)
    at Object.synthesize (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:1:598)
    at ShopvoxStagingComputeStage.synth (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/core/lib/stage.js:1:1866)
    at Object.pipelineSynth (/home/kralljir/shopvox/cdk-shopvox-app-compute/node_modules/aws-cdk-lib/pipelines/lib/private/construct-internals.js:1:705)

when instantiating a SlackNotifier:

new SlackNotifier(this, 'SlackNotifier', {
      pipeline: this.pipeline,
      slackBotToken: props.slackBotToken,
      slackSigningSecret: props.slackSigningSecret,
      slackChannel: props.slackChannel
    });

The problem seems to be the deprecated validate() method here.

@jctan
Copy link

jctan commented Mar 1, 2023

have anyone figure out the cloudcomponents module for cdk2 for python? I'm getting ModuleNotFoundError: No module named 'cloudcomponents'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants