Skip to content

Typescript examples fail to run support scripts with latest CDK releases #49

@NGL321

Description

@NGL321

Describe the bug
The support scripts will no longer build with the latest releases of the CDK. They fail with the below error.

To Reproduce
Attempt to run either "scripts/build.sh" OR "scripts/build-npm.sh"

Expected behavior

> [email protected] build /codebuild/output/src827049164/src/typescript/elasticbeanstalk/elasticbeanstalk-environment 
> tsc 
 
index.ts(13,27): error TS2551: Property 'getContext' does not exist on type 'ConstructNode'. Did you mean 'setContext'? 
npm ERR! code ELIFECYCLE 
npm ERR! errno 2 
npm ERR! [email protected] build: `tsc` 
npm ERR! Exit status 2 
npm ERR!  
npm ERR! Failed at the [email protected] build script. 
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 
 
npm ERR! A complete log of this run can be found in: 
npm ERR!     /root/.npm/_logs/2019-06-11T12_38_31_507Z-debug.log 
 
[Container] 2019/06/11 12:38:31 Command did not exit successfully chmod +x scripts/*.sh && scripts/build.sh exit status 1 
[Container] 2019/06/11 12:38:31 Phase complete: BUILD State: FAILED 
[Container] 2019/06/11 12:38:31 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: chmod +x scripts/*.sh && scripts/build.sh. Reason: exit status 1 
[Container] 2019/06/11 12:38:31 Entering phase POST_BUILD 
[Container] 2019/06/11 12:38:31 Phase complete: POST_BUILD State: SUCCEEDED 
[Container] 2019/06/11 12:38:31 Phase context status code:  Message:  

Version:

  • OS: OSX-10.13.6 (High Sierra)
  • Programming Language: Typescript
  • CDK Version: 0.34.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions