Skip to content

Triggers: Module not included in 2.14 release #19164

@zandaleph

Description

@zandaleph

What is the problem?

I'm trying to use the new triggers functionality which was announced as part of the 2.14.0 release. After upgrading, it does not appear to be present. When I try to import the library via:

import * as triggers from "aws-cdk-lib/triggers";

I get the following error:

TSError: ⨯ Unable to compile TypeScript:
lib/redacted.ts:8:27 - error TS2307: Cannot find module 'aws-cdk-lib/triggers' or its corresponding type declarations.

8 import * as triggers from "aws-cdk-lib/triggers";

Is it possible this was accidentally not included in the 2.14.0 release?

Reproduction Steps

Attempt to import the triggers library as indicated in the problem.

What did you expect to happen?

I would be able to use an announced feature

What actually happened?

I got a compile error for missing module

CDK CLI Version

2.14.0 (build 762d71b)

Framework Version

2.14.0

Node.js Version

v16.14.0

OS

macOS 12.1

Language

Typescript

Language Version

Typescript (~3.9.7)

Other information

Discussed issue in slack before raising issue, relevant thread is https://app.slack.com/client/T017JQ2SWES/C017RG58LM8/thread/C017RG58LM8-1645595484.898189

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions